public interface RetryStrategy
Modifier and Type | Method and Description |
---|---|
long |
nextRetry(TransactionFailureException reason,
int failureCount)
Returns the number of milliseconds to wait before retrying the operation.
|
long nextRetry(TransactionFailureException reason, int failureCount)
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.