public class ConstantReconnectionPolicy extends Object implements ReconnectionPolicy
|Constructor and Description|
Creates a reconnection policy that creates with the provided constant wait time between reconnection attempts.
|Modifier and Type||Method and Description|
The constant delay used by this reconnection policy.
A new schedule that uses a constant
public ConstantReconnectionPolicy(long constantDelayMs)
constantDelayMs- the constant delay in milliseconds to use.
public long getConstantDelayMs()
public ReconnectionPolicy.ReconnectionSchedule newSchedule()
getConstantDelayMs()delay between reconnection attempt.