@ProviderType
public interface RetryStrategy
| Modifier and Type | Method and Description |
|---|---|
static RetryStrategy |
foreverRetry()
Creates a retry configuration strategy that set to infinitely run automatic retries with a
retry interval of 3000 milliseconds.
|
static RetryStrategy |
foreverRetry(int retryInterval)
Creates a retry configuration strategy that set to infinitely run automatic retries with the
specified retry interval (in milliseconds).
|
int |
getRetries()
Returns the number of times to retry an action.
|
int |
getRetryInterval()
Returns the interval (in milliseconds) between retry attempts.
|
static RetryStrategy |
neverRetry()
Creates an instance of configuration for disabled automatic retries.
|
static RetryStrategy |
parametrizedRetry(int retries,
int retryInterval)
Creates an instance of configuration for fully configurable
RetryStrategy. |
int getRetries()
int getRetryInterval()
static RetryStrategy foreverRetry()
RetryStrategy that is configured to run automatic retries
foreverstatic RetryStrategy foreverRetry(int retryInterval)
retryInterval - the interval range, the valid range for the retry interval is 0 to 60000RetryStrategy that is configured to infinitely run the
automatic retry processstatic RetryStrategy neverRetry()
RetryStrategy that is configured to never run the automatic
retry processstatic RetryStrategy parametrizedRetry(int retries, int retryInterval)
RetryStrategy.retries - value > 0 is expectedretryInterval - valid range for retry interval in milliseconds is from 0 to 60000RetryStrategy configured to run user-defined retry behaviorCopyright 2019-2025 Solace Corporation. All rights reserved.