com.netflix.astyanax.retry
Class ConstantBackoff

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

public class ConstantBackoff
extends SleepingRetryPolicy


Constructor Summary
ConstantBackoff(int sleepTimeMs, int max)
           
 
Method Summary
 RetryPolicy duplicate()
          Duplicate this policy into a fresh instance
 long getSleepTimeMs()
           
 String toString()
           
 
Methods inherited from class com.netflix.astyanax.retry.SleepingRetryPolicy
allowRetry, begin, failure, getAttemptCount, getMax, getMaxAttemptCount, success
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstantBackoff

public ConstantBackoff(int sleepTimeMs,
                       int max)
Method Detail

getSleepTimeMs

public long getSleepTimeMs()
Specified by:
getSleepTimeMs in class SleepingRetryPolicy

duplicate

public RetryPolicy duplicate()
Description copied from interface: RetryPolicy
Duplicate this policy into a fresh instance

Returns:

toString

public String toString()
Overrides:
toString in class SleepingRetryPolicy


Copyright © 2012. All Rights Reserved.