src/Guzzle/Plugin/Backoff/BackoffPlugin.php
public static function getExponentialBackoff(
        $maxRetries = 3,
        array $httpCodes = null,
        array $curlCodes = null
    ) {
        return new self(new TruncatedBackoffStrategy($maxRetries,
            new HttpBackoffStrategy($httpCodes,
                new CurlBackoffStrategy($curlCodes,
                    new ExponentialBackoffStrategy()
                )
            )
        ));
    }
public static function getExponentialBackoff(
        $maxRetries = 3,
        array $httpCodes = null,
        array $curlCodes = null
    ) {
        return new self(new TruncatedBackoffStrategy($maxRetries,
            new HttpBackoffStrategy($httpCodes,
                new CurlBackoffStrategy($curlCodes,
                    new ExponentialBackoffStrategy()
                )
            )
        ));
    }
public static function getExponentialBackoff ( $ maxRetries = 3 , array $ httpCodes = null , array $ curlCodes = null ) { return new self ( new TruncatedBackoffStrategy ( $ maxRetries , new HttpBackoffStrategy ( $ httpCodes , new CurlBackoffStrategy ( $ curlCodes , new ExponentialBackoffStrategy ( ) ) ) ) ) ; }
Retrieve a basic truncated exponential backoff plugin that will retry HTTP errors and cURL errors

@param int   $maxRetries Maximum number of retries
@param array $httpCodes  HTTP response codes to retry
@param array $curlCodes  cURL error codes to retry

@return self
Retrieve a basic truncated exponential backoff plugin that will retry HTTP errors and cURL errors