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)
BackOffRetryHandler
canTryOpNow
in interface BackOffRetryHandler
failContext
- FailureContext holding failures till now.public long getOperationNextTime(FailureContext failContext)
BackOffRetryHandler
getOperationNextTime
in interface BackOffRetryHandler
failContext
- FailureContext holding failures till now.public boolean hasExhaustedRetries(FailureContext failContext)
BackOffRetryHandler
hasExhaustedRetries
in interface BackOffRetryHandler
failContext
- FailureContext holding failures till now.Copyright © 2014–2016 Apache Software Foundation. All rights reserved.