@ConfigurationProperties(value="org.ametiste.scm.broker.sender.retry")
public class SenderRetryProperties
extends java.lang.Object
RetryTemplate instance for sending process retry
mechanism.
Defined properties are included (org.ametiste.scm.broker.sender.retry.*):
| Name | Type | Description | Default |
| maxAttempts | int | Maximum number of attempts. | 5 |
| interval | int | Interval between retry attempts (in milliseconds). | 1000 |
| exponentialBackOff | boolean | Enables exponential backoff policy. | false |
| maxInterval | int | Maximum interval between attempts in case when exponentialBackOff is enabled (in milliseconds). | 30000 |
| multiplier | double | Multiplier for exponentialBackOff policy. | 3.0 |
This properties is designed provide usable default configuration that provides retry with fixed number of attempts and fixed retry interval.
| Constructor and Description |
|---|
SenderRetryProperties() |
| Modifier and Type | Method and Description |
|---|---|
int |
getInterval() |
int |
getMaxAttempts() |
int |
getMaxInterval() |
double |
getMultiplier() |
boolean |
isExponentialBackOff() |
void |
setExponentialBackOff(boolean exponentialBackOff) |
void |
setInterval(int interval) |
void |
setMaxAttempts(int maxAttempts) |
void |
setMaxInterval(int maxInterval) |
void |
setMultiplier(double multiplier) |
public int getMaxAttempts()
public int getInterval()
public boolean isExponentialBackOff()
public int getMaxInterval()
public double getMultiplier()
public void setMaxAttempts(int maxAttempts)
public void setInterval(int interval)
public void setExponentialBackOff(boolean exponentialBackOff)
public void setMaxInterval(int maxInterval)
public void setMultiplier(double multiplier)