Was this page helpful?
ConstantReconnectionPolicy¶
policies/reconnection~ConstantReconnectionPolicy(delay)
A reconnection policy that waits a constant time between each reconnection attempt.
Constructor¶
new ConstantReconnectionPolicy(delay)
Parameters:
| Name | Type | Description |
|---|---|---|
delay |
Delay in ms |
Methods¶
getOptions()
Gets an associative array containing the policy options.
newSchedule()
A new reconnection schedule that returns the same next delay value
Returns:
An infinite iterator