Package com.hazelcast.jet.retry
Class RetryStrategies
java.lang.Object
com.hazelcast.jet.retry.RetryStrategies
Collection of factory methods for creating the most frequently used
RetryStrategies.- Since:
- Jet 4.3
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for custom retry strategies. -
Method Summary
Modifier and TypeMethodDescriptionstatic RetryStrategies.Buildercustom()Create a builder which can be used for setting up an arbitrarily complex strategy.static RetryStrategyindefinitely(long intervalMillis) Create a strategy which will retry failed actions indefinitely and will wait for a fixed amount of time between any two subsequent attempts.static RetryStrategynever()Create a strategy which will not retry a failed action.
-
Method Details
-
never
Create a strategy which will not retry a failed action. -
indefinitely
Create a strategy which will retry failed actions indefinitely and will wait for a fixed amount of time between any two subsequent attempts. -
custom
Create a builder which can be used for setting up an arbitrarily complex strategy.
-