Reference documentation and code samples for the Google Cloud PHP shared dependency, providing functionality useful to all components. Client class ExponentialBackoff.
Exponential backoff implementation.
Methods
__construct
retries
int
[optional] Number of retries for a failed request.
retryFunction
callable
[optional] returns bool for whether or not to retry
execute
Executes the retry process.
function
callable
arguments
array
[optional]
mixed
setDelayFunction
If not set, defaults to using usleep
.
delayFunction
callable
void
setCalcDelayFunction
If not set, defaults to using Google\Cloud\Core\ExponentialBackoff::calculateDelay() .
calcDelayFunction
callable
void
calculateDelay
Calculates exponential delay.
attempt
int
The attempt number used to calculate the delay.
int
Constants
MAX_DELAY_MICROSECONDS
Value: 60000000