Class ExponentialRetryConfigurationProperties
java.lang.Object
com.azure.spring.cloud.autoconfigure.properties.core.retry.ExponentialRetryConfigurationProperties
- All Implemented Interfaces:
com.azure.spring.cloud.core.provider.RetryOptionsProvider.RetryOptions.ExponentialRetryOptions
public class ExponentialRetryConfigurationProperties
extends Object
implements com.azure.spring.cloud.core.provider.RetryOptionsProvider.RetryOptions.ExponentialRetryOptions
Properties of the exponential retry mode.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setBaseDelay
(Duration baseDelay) Set the amount of time to wait between retry attempts.void
setMaxDelay
(Duration maxDelay) Set the maximum permissible amount of time between retry attempts.void
setMaxRetries
(Integer maxRetries) Set the maximum number of attempts.
-
Constructor Details
-
ExponentialRetryConfigurationProperties
public ExponentialRetryConfigurationProperties()
-
-
Method Details
-
getMaxRetries
- Specified by:
getMaxRetries
in interfacecom.azure.spring.cloud.core.provider.RetryOptionsProvider.RetryOptions.ExponentialRetryOptions
-
setMaxRetries
Set the maximum number of attempts.- Parameters:
maxRetries
- the maximum number of attempts.
-
getBaseDelay
- Specified by:
getBaseDelay
in interfacecom.azure.spring.cloud.core.provider.RetryOptionsProvider.RetryOptions.ExponentialRetryOptions
-
setBaseDelay
Set the amount of time to wait between retry attempts.- Parameters:
baseDelay
- The delay to wait between retry attempts.
-
getMaxDelay
- Specified by:
getMaxDelay
in interfacecom.azure.spring.cloud.core.provider.RetryOptionsProvider.RetryOptions.ExponentialRetryOptions
-
setMaxDelay
Set the maximum permissible amount of time between retry attempts.- Parameters:
maxDelay
- The maximum permissible amount of time between retry attempts.
-