- All Known Implementing Classes:
public interface RecoveryDelayHandlerA RecoveryDelayHandler is used to tell automatic recovery how long to sleep between reconnect attempts.
Nested Class Summary
Nested Classes Modifier and Type Interface Description
RecoveryDelayHandler.ExponentialBackoffDelayHandlerBackoff implementation of
RecoveryDelayHandlerthat uses the Fibonacci sequence (by default) to increase the recovery delay time after each failed attempt.
long getDelay(int recoveryAttempts)Get the time to sleep (in milliseconds) before attempting to reconnect and recover again. This method will be called with recoveryAttempts=0 before the first recovery attempt and then again after each failed recovery.
recoveryAttempts- The number of recovery attempts so far.
- the delay in milliseconds