WaiterInterface
in
WaiterInterface used to wait on something to be in a particular state
Table of Contents
Constants
- INTERVAL = 'waiter.interval'
- MAX_ATTEMPTS = 'waiter.max_attempts'
Methods
- setConfig() : self
- Set configuration options associated with the waiter
- setInterval() : self
- Set the amount of time to interval between attempts
- setMaxAttempts() : self
- Set the maximum number of attempts to make when waiting
- wait() : mixed
- Begin the waiting loop
Constants
INTERVAL
public
mixed
INTERVAL
= 'waiter.interval'
MAX_ATTEMPTS
public
mixed
MAX_ATTEMPTS
= 'waiter.max_attempts'
Methods
setConfig()
Set configuration options associated with the waiter
public
setConfig(array<string|int, mixed> $config) : self
Parameters
- $config : array<string|int, mixed>
-
Configuration options to set
Return values
selfsetInterval()
Set the amount of time to interval between attempts
public
setInterval(int $interval) : self
Parameters
- $interval : int
-
Interval in seconds
Return values
selfsetMaxAttempts()
Set the maximum number of attempts to make when waiting
public
setMaxAttempts(int $maxAttempts) : self
Parameters
- $maxAttempts : int
-
Max number of attempts
Return values
selfwait()
Begin the waiting loop
public
wait() : mixed