public class RetryConfig extends Object
| Constructor and Description |
|---|
RetryConfig() |
| Modifier and Type | Method and Description |
|---|---|
BackoffStrategy |
getBackoffStrategy() |
java.time.Duration |
getDelayBetweenRetries() |
int |
getMaxNumberOfTries() |
Set<Class<? extends Exception>> |
getRetryOnSpecificExceptions() |
boolean |
isRetryOnAnyException() |
void |
setBackoffStrategy(BackoffStrategy backoffStrategy) |
void |
setDelayBetweenRetries(java.time.Duration delayBetweenRetries) |
void |
setMaxNumberOfTries(int maxNumberOfTries) |
void |
setRetryOnAnyException(boolean retryOnAnyException) |
void |
setRetryOnSpecificExceptions(Set<Class<? extends Exception>> retryOnSpecificExceptions) |
static RetryConfig |
simpleExponentialConfig() |
static RetryConfig |
simpleFibonacciConfig() |
static RetryConfig |
simpleFixedConfig() |
String |
toString() |
public boolean isRetryOnAnyException()
public void setRetryOnAnyException(boolean retryOnAnyException)
public void setRetryOnSpecificExceptions(Set<Class<? extends Exception>> retryOnSpecificExceptions)
public int getMaxNumberOfTries()
public void setMaxNumberOfTries(int maxNumberOfTries)
public java.time.Duration getDelayBetweenRetries()
public void setDelayBetweenRetries(java.time.Duration delayBetweenRetries)
public BackoffStrategy getBackoffStrategy()
public void setBackoffStrategy(BackoffStrategy backoffStrategy)
public static RetryConfig simpleFixedConfig()
public static RetryConfig simpleExponentialConfig()
public static RetryConfig simpleFibonacciConfig()
Copyright © 2015. All rights reserved.