public interface RetryStrategy
| Modifier and Type | Interface and Description |
|---|---|
static class |
RetryStrategy.OperationType
Defines ZooKeeper operation type that triggers retry.
|
| Modifier and Type | Method and Description |
|---|---|
long |
nextRetry(int failureCount,
long startTime,
RetryStrategy.OperationType type,
String path)
Returns the number of milliseconds to wait before retrying the operation.
|
long nextRetry(int failureCount,
long startTime,
RetryStrategy.OperationType type,
String path)
failureCount - Number of times that the request has been failed.startTime - Timestamp in milliseconds that the request starts.type - Type of operation tried to perform.path - The path that the operation is acting on.0 means
retry it immediately, while negative means abort the operation.Copyright © 2013-2016 The Apache Software Foundation. All rights reserved.