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