backtype.storm.utils
Class Utils.BoundedExponentialBackoffRetry

java.lang.Object
  extended by org.apache.curator.retry.ExponentialBackoffRetry
      extended by 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


Field Summary
protected  int maxRetryInterval
           
 
Constructor Summary
Utils.BoundedExponentialBackoffRetry(int baseSleepTimeMs, int maxRetries, int maxSleepTimeMs)
           
 
Method Summary
 int getMaxRetryInterval()
           
 int getSleepTimeMs(int count, long elapsedMs)
           
 
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
 

Field Detail

maxRetryInterval

protected final int maxRetryInterval
Constructor Detail

Utils.BoundedExponentialBackoffRetry

public Utils.BoundedExponentialBackoffRetry(int baseSleepTimeMs,
                                            int maxRetries,
                                            int maxSleepTimeMs)
Method Detail

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.