Package com.hazelcast.jet.retry
Class RetryStrategies.Builder
java.lang.Object
com.hazelcast.jet.retry.RetryStrategies.Builder
- Enclosing class:
- RetryStrategies
Builder for custom retry strategies.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Constructs the actual strategy based on the properties set previously.Set a function to modify the waiting interval after a failure.maxAttempts
(int maxRetryAttempts) Sets the maximum number of retry attempts.
-
Method Details
-
maxAttempts
Sets the maximum number of retry attempts. -
intervalFunction
Set a function to modify the waiting interval after a failure.- Parameters:
f
- Function to modify the interval after a failure- Returns:
- the RetryConfig.Builder
-
build
Constructs the actual strategy based on the properties set previously.
-