Documentation

WaiterInterface

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

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
self

setInterval()

Set the amount of time to interval between attempts

public setInterval(int $interval) : self
Parameters
$interval : int

Interval in seconds

Return values
self

setMaxAttempts()

Set the maximum number of attempts to make when waiting

public setMaxAttempts(int $maxAttempts) : self
Parameters
$maxAttempts : int

Max number of attempts

Return values
self

wait()

Begin the waiting loop

public wait() : mixed
Tags
throws
RuntimeException

if the method never resolves to true


        
On this page

Search results