HasRetryPolicy
trait HasRetryPolicy
Properties
| protected RetryPolicy|null | $retryPolicy | The request retry policy. |
Methods
RetryPolicy|null
retryPolicy()
Get the request retry policy.
RetryPolicy|null
defaultRetryPolicy()
Resolve the default retry policy.
Details
at line 23
HasRetryPolicy
retry(array|int $times, Closure|int $sleepMilliseconds = 0, callable|null $when = null, bool $throw = true)
Specify the number of times the request should be attempted.
at line 37
RetryPolicy|null
retryPolicy()
Get the request retry policy.
at line 45
protected RetryPolicy|null
defaultRetryPolicy()
Resolve the default retry policy.