Class FixedRetryProperties
java.lang.Object
com.azure.spring.cloud.core.properties.retry.FixedRetryProperties
- All Implemented Interfaces:
RetryOptionsProvider.RetryOptions.FixedRetryOptions
public class FixedRetryProperties
extends Object
implements RetryOptionsProvider.RetryOptions.FixedRetryOptions
Properties of the fixed retry mode.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDelay()Get the delay duration.The maximum number of attempts.voidSet the amount of time to wait between retry attempts.voidsetMaxRetries(Integer maxRetries) Set the maximum number attempts.
-
Constructor Details
-
FixedRetryProperties
public FixedRetryProperties()Creates an instance ofFixedRetryProperties.
-
-
Method Details
-
getMaxRetries
Description copied from interface:RetryOptionsProvider.RetryOptions.FixedRetryOptionsThe maximum number of attempts.- Specified by:
getMaxRetriesin interfaceRetryOptionsProvider.RetryOptions.FixedRetryOptions- Returns:
- the max attempts.
-
setMaxRetries
Set the maximum number attempts.- Parameters:
maxRetries- the maximum number attempts.
-
getDelay
Description copied from interface:RetryOptionsProvider.RetryOptions.FixedRetryOptionsGet the delay duration.- Specified by:
getDelayin interfaceRetryOptionsProvider.RetryOptions.FixedRetryOptions- Returns:
- the delay duration.
-
setDelay
Set the amount of time to wait between retry attempts.- Parameters:
delay- the amount of time to wait between retry attempts.
-