public static class RecoveryDelayHandler.DefaultRecoveryDelayHandler extends Object implements RecoveryDelayHandler
RecoveryDelayHandler that returns the network recovery interval each time.RecoveryDelayHandler.DefaultRecoveryDelayHandler, RecoveryDelayHandler.ExponentialBackoffDelayHandler| Constructor and Description |
|---|
DefaultRecoveryDelayHandler(long networkRecoveryInterval)
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
long |
getDelay(int recoveryAttempts)
Get the time to sleep (in milliseconds) before attempting to reconnect and recover again.
|
public DefaultRecoveryDelayHandler(long networkRecoveryInterval)
networkRecoveryInterval - recovery delay time in millispublic long getDelay(int recoveryAttempts)
RecoveryDelayHandlergetDelay in interface RecoveryDelayHandlerrecoveryAttempts - The number of recovery attempts so far.Copyright © 2021 VMware, Inc. or its affiliates.. All rights reserved.