public class NoRetryStrategy extends Object implements RetryStrategy
Modifier and Type | Field and Description |
---|---|
static RetryStrategy |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
long |
nextRetry(TransactionFailureException reason,
int failureCount)
Returns the number of milliseconds to wait before retrying the operation.
|
public static final RetryStrategy INSTANCE
public long nextRetry(TransactionFailureException reason, int failureCount)
RetryStrategy
nextRetry
in interface RetryStrategy
reason
- Reason for transaction failure.failureCount
- Number of times that the request has been failed.0
means
retry it immediately, while negative means abort the operation.Copyright © 2017 The Apache Software Foundation. All rights reserved.