Google Cloud PHP shared dependency, providing functionality useful to all components. Client - Class ExponentialBackoff (1.50.0)Stay organized with collectionsSave and categorize content based on your preferences.
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
Parameters
Name
Description
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.
Parameters
Name
Description
function
callable
arguments
array
[optional]
Returns
Type
Description
mixed
setDelayFunction
If not set, defaults to usingusleep.
Parameter
Name
Description
delayFunction
callable
Returns
Type
Description
void
setCalcDelayFunction
If not set, defaults to usingGoogle\Cloud\Core\ExponentialBackoff::calculateDelay().
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]