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