Interface RetryPolicy.Constant.Builder
- Enclosing interface:
- RetryPolicy.Constant
public static interface RetryPolicy.Constant.Builder
A builder to create a
RetryPolicy.Constant
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aConstant
objectdelayInSeconds
(long delayInSeconds) Sets the period of time between retries.maxRetries
(int maxRetries) Sets the maximum number of retries
-
Method Details
-
maxRetries
Sets the maximum number of retries- Parameters:
maxRetries
- the maximum number of retries- Returns:
- a builder
-
delayInSeconds
Sets the period of time between retries.- Parameters:
delayInSeconds
- period of time between retries- Returns:
- a builder
-
build
RetryPolicy.Constant build()Builds aConstant
object- Returns:
- a
Constant
-