public interface RecoveryDelayHandler
Modifier and Type | Interface and Description |
---|---|
static class |
RecoveryDelayHandler.DefaultRecoveryDelayHandler
Basic implementation of
RecoveryDelayHandler that returns the network recovery interval each time. |
static class |
RecoveryDelayHandler.ExponentialBackoffDelayHandler
Backoff implementation of
RecoveryDelayHandler that uses the Fibonacci sequence (by default) to increase the recovery delay time after each failed attempt. |
Modifier and Type | Method and Description |
---|---|
long |
getDelay(int recoveryAttempts)
Get the time to sleep (in milliseconds) before attempting to reconnect and recover again.
|
long getDelay(int recoveryAttempts)
recoveryAttempts
- The number of recovery attempts so far.Copyright © 2024 Broadcom Inc. and its subsidiaries.. All rights reserved.