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 aConstantobjectdelayInSeconds(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
Builds aConstantobject- Returns:
- a
Constant
-