com.netflix.astyanax.retry
Class ExponentialBackoff
java.lang.Object
com.netflix.astyanax.retry.SleepingRetryPolicy
com.netflix.astyanax.retry.ExponentialBackoff
- All Implemented Interfaces:
- RetryPolicy
- Direct Known Subclasses:
- BoundedExponentialBackoff
public class ExponentialBackoff
- extends SleepingRetryPolicy
ExponentialBackoff
public ExponentialBackoff(int baseSleepTimeMs,
int max)
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.