public class

BoundedExponentialBackoff

extends ExponentialBackoff
java.lang.Object
   ↳ com.netflix.astyanax.retry.SleepingRetryPolicy
     ↳ com.netflix.astyanax.retry.ExponentialBackoff
       ↳ com.netflix.astyanax.retry.BoundedExponentialBackoff

Class Overview

Bounded exponential backoff that will wait for no more than a provided max amount of time. The following examples show the maximum wait time for each attempt ExponentalBackoff(250, 10) 250 500 1000 2000 4000 8000 16000 32000 64000 128000 BoundedExponentialBackoff(250, 5000, 10) 250 500 1000 2000 4000 5000 5000 5000 5000 5000

Summary

Public Constructors
BoundedExponentialBackoff(int baseSleepTimeMs, int maxSleepTimeMs, int max)
Public Methods
RetryPolicy duplicate()
long getSleepTimeMs()
String toString()
[Expand]
Inherited Methods
From class com.netflix.astyanax.retry.ExponentialBackoff
From class com.netflix.astyanax.retry.SleepingRetryPolicy
From class java.lang.Object
From interface com.netflix.astyanax.retry.RetryPolicy

Public Constructors

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

Public Methods

public RetryPolicy duplicate ()

public long getSleepTimeMs ()

public String toString ()