Package com.hazelcast.jet.retry
Class RetryStrategies.Builder
- java.lang.Object
-
- com.hazelcast.jet.retry.RetryStrategies.Builder
-
- Enclosing class:
- RetryStrategies
public static final class RetryStrategies.Builder extends java.lang.Object
Builder for custom retry strategies.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RetryStrategy
build()
Constructs the actual strategy based on the properties set previously.RetryStrategies.Builder
intervalFunction(IntervalFunction f)
Set a function to modify the waiting interval after a failure.RetryStrategies.Builder
maxAttempts(int maxRetryAttempts)
Sets the maximum number of retry attempts.
-
-
-
Method Detail
-
maxAttempts
public RetryStrategies.Builder maxAttempts(int maxRetryAttempts)
Sets the maximum number of retry attempts.
-
intervalFunction
public RetryStrategies.Builder intervalFunction(IntervalFunction f)
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
public RetryStrategy build()
Constructs the actual strategy based on the properties set previously.
-
-