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 Constructor Description ExponentialRetryConfigurationProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DurationgetBaseDelay()DurationgetMaxDelay()IntegergetMaxRetries()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.
-
-
-
Method Detail
-
getMaxRetries
public Integer getMaxRetries()
- Specified by:
getMaxRetriesin interfacecom.azure.spring.cloud.core.provider.RetryOptionsProvider.RetryOptions.ExponentialRetryOptions
-
setMaxRetries
public void setMaxRetries(Integer maxRetries)
Set the maximum number of attempts.- Parameters:
maxRetries- the maximum number of attempts.
-
getBaseDelay
public Duration getBaseDelay()
- Specified by:
getBaseDelayin interfacecom.azure.spring.cloud.core.provider.RetryOptionsProvider.RetryOptions.ExponentialRetryOptions
-
setBaseDelay
public void setBaseDelay(Duration baseDelay)
Set the amount of time to wait between retry attempts.- Parameters:
baseDelay- The delay to wait between retry attempts.
-
getMaxDelay
public Duration getMaxDelay()
- Specified by:
getMaxDelayin interfacecom.azure.spring.cloud.core.provider.RetryOptionsProvider.RetryOptions.ExponentialRetryOptions
-
setMaxDelay
public void setMaxDelay(Duration maxDelay)
Set the maximum permissible amount of time between retry attempts.- Parameters:
maxDelay- The maximum permissible amount of time between retry attempts.
-
-