Interface RetryPolicy.Exponential.Builder
- Enclosing interface:
- RetryPolicy.Exponential
public static interface RetryPolicy.Exponential.Builder
A builder to create a
RetryPolicy.Exponential
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aExponential
objectinitialDelayInSeconds
(long initialDelayInSeconds) Sets the initial delay in seconds.maximumDelayInSeconds
(long maximumDelayInSeconds) Sets the maximum time interval of the delay in seconds.maxRetries
(int maxRetries) Sets the maximum number of retriesmultiplier
(double multiplier) Sets the multiplier of the delay interval
-
Method Details
-
maxRetries
Sets the maximum number of retries- Parameters:
maxRetries
- the maximum number of retries- Returns:
- a builder
-
initialDelayInSeconds
Sets the initial delay in seconds.- Parameters:
initialDelayInSeconds
- the initial delay in seconds- Returns:
- a builder
-
multiplier
Sets the multiplier of the delay interval- Parameters:
multiplier
- the multiplier of the delay interval- Returns:
- a builder
-
maximumDelayInSeconds
Sets the maximum time interval of the delay in seconds.- Parameters:
maximumDelayInSeconds
- the maximum time interval of the delay in seconds- Returns:
- a builder
-
build
RetryPolicy.Exponential build()Builds aExponential
object- Returns:
- a
Exponential
-