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