public interface RetryStrategy
|Modifier and Type||Interface and Description|
Defines ZooKeeper operation type that triggers retry.
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.
0means retry it immediately, while negative means abort the operation.
Copyright © 2013-2016 The Apache Software Foundation. All rights reserved.