Class BackoffPlugin
Plugin to automatically retry failed HTTP requests using a backoff strategy
- Guzzle\Common\AbstractHasDispatcher implements Guzzle\Common\HasDispatcherInterface
- Guzzle\Plugin\Backoff\BackoffPlugin implements Symfony\Component\EventDispatcher\EventSubscriberInterface
public
|
|
public static
|
#
getExponentialBackoff( integer $maxRetries = 3, array $httpCodes = null, array $curlCodes = null )
Retrieve a basic truncated exponential backoff plugin that will retry HTTP errors and cURL errors |
public static
array
|
|
public static
array
|
|
public
|
#
onRequestSent(
Called when a request has been sent and isn't finished processing |
public
|
#
onRequestPoll(
Called when a request is polling in the curl multi object |
addSubscriber(),
dispatch(),
getEventDispatcher(),
setEventDispatcher()
|
string |
DELAY_PARAM
|
Guzzle\Plugin\Backoff\CurlMultiInterface::BLOCKING |
|
string |
RETRY_PARAM
|
'plugins.backoff.retry_count' |
|
string |
RETRY_EVENT
|
'plugins.backoff.retry' |
protected
|
$strategy |
|
#
Backoff strategy |
$eventDispatcher
|