public class ImmediateRetryHandler<FC extends FailureContext> extends Object implements BackOffRetryHandler<FC>
Constructor and Description |
---|
ImmediateRetryHandler() |
ImmediateRetryHandler(int retries) |
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
|
public ImmediateRetryHandler()
@ConstructorProperties(value="retries") @Generated(value="lombok") public ImmediateRetryHandler(int retries)
public boolean canTryOpNow(FC failContext)
BackOffRetryHandler
canTryOpNow
in interface BackOffRetryHandler<FC extends FailureContext>
failContext
- FailureContext holding failures till now.public long getOperationNextTime(FC failContext)
BackOffRetryHandler
getOperationNextTime
in interface BackOffRetryHandler<FC extends FailureContext>
failContext
- FC holding failures till now.public boolean hasExhaustedRetries(FC failContext)
BackOffRetryHandler
hasExhaustedRetries
in interface BackOffRetryHandler<FC extends FailureContext>
failContext
- FC holding failures till now.Copyright © 2014–2018 Apache Software Foundation. All rights reserved.