public class FibonacciExponentialBackOffRetryHandler<FC extends FailureContext> extends Object implements BackOffRetryHandler<FC>
| Constructor and Description |
|---|
FibonacciExponentialBackOffRetryHandler(int numRetries,
long maxDelay,
long waitMillis) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canTryOpNow(FC failContext)
To know whether operation can be done now.
|
long |
getOperationNextTime(FC failContext)
Get the time when the operation can be done next.
|
boolean |
hasExhaustedRetries(FC failContext)
Has the operation exhausted all its retries
|
public FibonacciExponentialBackOffRetryHandler(int numRetries,
long maxDelay,
long waitMillis)
public boolean canTryOpNow(FC failContext)
BackOffRetryHandlercanTryOpNow in interface BackOffRetryHandler<FC extends FailureContext>failContext - FailureContext holding failures till now.public long getOperationNextTime(FC failContext)
BackOffRetryHandlergetOperationNextTime in interface BackOffRetryHandler<FC extends FailureContext>failContext - FC holding failures till now.public boolean hasExhaustedRetries(FC failContext)
BackOffRetryHandlerhasExhaustedRetries in interface BackOffRetryHandler<FC extends FailureContext>failContext - FC holding failures till now.Copyright © 2014–2018 Apache Software Foundation. All rights reserved.