Class ExponentialRetryProperties
java.lang.Object
com.azure.spring.cloud.core.properties.retry.ExponentialRetryProperties
- All Implemented Interfaces:
RetryOptionsProvider.RetryOptions.ExponentialRetryOptions
public class ExponentialRetryProperties
extends Object
implements RetryOptionsProvider.RetryOptions.ExponentialRetryOptions
Properties of the exponential retry mode.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the delay duration.Get the max delay duration.The maximum number of attempts.voidsetBaseDelay(Duration baseDelay) Set the amount of time to wait between retry attempts.voidsetMaxDelay(Duration maxDelay) Set the maximum permissible amount of time between retry attempts.voidsetMaxRetries(Integer maxRetries) Set the maximum number of attempts.
-
Constructor Details
-
ExponentialRetryProperties
public ExponentialRetryProperties()
-
-
Method Details
-
getMaxRetries
Description copied from interface:RetryOptionsProvider.RetryOptions.ExponentialRetryOptionsThe maximum number of attempts.- Specified by:
getMaxRetriesin interfaceRetryOptionsProvider.RetryOptions.ExponentialRetryOptions- Returns:
- the max attempts.
-
setMaxRetries
Set the maximum number of attempts.- Parameters:
maxRetries- the maximum number of attempts.
-
getBaseDelay
Description copied from interface:RetryOptionsProvider.RetryOptions.ExponentialRetryOptionsGet the delay duration.- Specified by:
getBaseDelayin interfaceRetryOptionsProvider.RetryOptions.ExponentialRetryOptions- Returns:
- the delay duration.
-
setBaseDelay
Set the amount of time to wait between retry attempts.- Parameters:
baseDelay- The delay to wait between retry attempts.
-
getMaxDelay
Description copied from interface:RetryOptionsProvider.RetryOptions.ExponentialRetryOptionsGet the max delay duration.- Specified by:
getMaxDelayin interfaceRetryOptionsProvider.RetryOptions.ExponentialRetryOptions- Returns:
- the max delay duration.
-
setMaxDelay
Set the maximum permissible amount of time between retry attempts.- Parameters:
maxDelay- The maximum permissible amount of time between retry attempts.
-