backtype.storm.utils
Class Utils.BoundedExponentialBackoffRetry
java.lang.Object
org.apache.curator.retry.ExponentialBackoffRetry
backtype.storm.utils.Utils.BoundedExponentialBackoffRetry
- All Implemented Interfaces:
- org.apache.curator.RetryPolicy
- Enclosing class:
- Utils
public static class Utils.BoundedExponentialBackoffRetry
- extends org.apache.curator.retry.ExponentialBackoffRetry
| Methods inherited from class org.apache.curator.retry.ExponentialBackoffRetry |
getBaseSleepTimeMs |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
maxRetryInterval
protected final int maxRetryInterval
Utils.BoundedExponentialBackoffRetry
public Utils.BoundedExponentialBackoffRetry(int baseSleepTimeMs,
int maxRetries,
int maxSleepTimeMs)
getMaxRetryInterval
public int getMaxRetryInterval()
getSleepTimeMs
public int getSleepTimeMs(int count,
long elapsedMs)
- Overrides:
getSleepTimeMs in class org.apache.curator.retry.ExponentialBackoffRetry
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.