PHP Class Tolerance\Waiter\ExponentialBackOff

Inheritance: implements Tolerance\Waiter\Waiter, implements Tolerance\Waiter\StatefulWaiter
Datei anzeigen Open project: sroze/tolerance

Public Methods

Method Description
__construct ( Tolerance\Waiter\Waiter $waiter, integer $initialExponent )
getNextTime ( integer $seconds ) : integer Return the amount of time that will be waited the next wait call.
resetState ( )
wait ( $seconds )

Method Details

__construct() public method

public __construct ( Tolerance\Waiter\Waiter $waiter, integer $initialExponent )
$waiter Tolerance\Waiter\Waiter
$initialExponent integer

getNextTime() public method

Return the amount of time that will be waited the next wait call.
public getNextTime ( integer $seconds ) : integer
$seconds integer
return integer

resetState() public method

public resetState ( )

wait() public method

public wait ( $seconds )