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