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 TypeMethodDescriptionvoidsetBaseDelay(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
-
ExponentialRetryConfigurationProperties
public ExponentialRetryConfigurationProperties()
-
-
Method Details
-
getMaxRetries
- Specified by:
getMaxRetriesin 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:
getBaseDelayin 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:
getMaxDelayin 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.
-