public class ExponentialBackoffStrategy extends Object
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_BACKOFF_FACTOR |
static int |
DEFAULT_INITIAL_DELAY |
static long |
DEFAULT_MAX_DELAY |
| Constructor and Description |
|---|
ExponentialBackoffStrategy() |
ExponentialBackoffStrategy(int initialDelay,
double backoffFactor,
long maxDelay,
int maxRetries) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
call(int initialCount,
IOCallable<T> callable) |
<T> T |
call(IOCallable<T> callable) |
public static final int DEFAULT_INITIAL_DELAY
public static final double DEFAULT_BACKOFF_FACTOR
public static final long DEFAULT_MAX_DELAY
public ExponentialBackoffStrategy()
public ExponentialBackoffStrategy(int initialDelay,
double backoffFactor,
long maxDelay,
int maxRetries)
public <T> T call(IOCallable<T> callable) throws ExponentialBackoffException, InterruptedException
public <T> T call(int initialCount,
IOCallable<T> callable)
throws ExponentialBackoffException,
InterruptedException
Copyright © 2016 Zalando SE. All rights reserved.