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)
RecoveryDelayHandler
getDelay
in interface RecoveryDelayHandler
recoveryAttempts
- The number of recovery attempts so far.Copyright © 2022 VMware, Inc. or its affiliates.. All rights reserved.