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