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
-
Method Summary
Modifier and TypeMethodDescriptiongetDelay()
Get the delay duration.The maximum number of attempts.void
Set the amount of time to wait between retry attempts.void
setMaxRetries
(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.FixedRetryOptions
The maximum number of attempts.- Specified by:
getMaxRetries
in 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.FixedRetryOptions
Get the delay duration.- Specified by:
getDelay
in 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.
-