com.netflix.astyanax.retry
Class BoundedExponentialBackoff

java.lang.Object
  extended by com.netflix.astyanax.retry.SleepingRetryPolicy
      extended by com.netflix.astyanax.retry.ExponentialBackoff
          extended by com.netflix.astyanax.retry.BoundedExponentialBackoff
All Implemented Interfaces:
RetryPolicy

public class BoundedExponentialBackoff
extends ExponentialBackoff


Constructor Summary
BoundedExponentialBackoff(int baseSleepTimeMs, int maxSleepTimeMs, int max)
           
 
Method Summary
 long getSleepTimeMs()
           
 String toString()
           
 
Methods inherited from class com.netflix.astyanax.retry.ExponentialBackoff
duplicate
 
Methods inherited from class com.netflix.astyanax.retry.SleepingRetryPolicy
allowRetry, begin, failure, getAttemptCount, getMax, success
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BoundedExponentialBackoff

public BoundedExponentialBackoff(int baseSleepTimeMs,
                                 int maxSleepTimeMs,
                                 int max)
Method Detail

getSleepTimeMs

public long getSleepTimeMs()
Overrides:
getSleepTimeMs in class ExponentialBackoff

toString

public String toString()
Overrides:
toString in class ExponentialBackoff


Copyright © 2012. All Rights Reserved.