Uses of Interface
com.hazelcast.jet.retry.IntervalFunction
Package
Description
Interfaces and utility classes for defining and tracking various types of
retry behaviour.
-
Uses of IntervalFunction in com.hazelcast.jet.retry
Modifier and TypeMethodDescriptionstatic IntervalFunction
IntervalFunction.constant
(long intervalMs) Creates anIntervalFunction
which returns a fixed interval in milliseconds.static IntervalFunction
IntervalFunction.exponentialBackoff
(long intervalMillis, double multiplier) Creates anIntervalFunction
which starts from the specified wait interval, on the first attempt, and for each subsequent attempt uses a longer interval, equal to the previous wait duration multiplied by the provided scaling factor (so for example: 1, 2, 4, 8, ...).static IntervalFunction
IntervalFunction.exponentialBackoffWithCap
(long intervalMillis, double multiplier, long capMillis) Creates anIntervalFunction
which starts from the specified wait interval, on the first attempt, and for each subsequent attempt uses a longer interval, equal to the previous wait duration multiplied by the provided scaling factor (so for example: 1, 2, 4, 8, ...).RetryStrategy.getIntervalFunction()
Function specifying how much time to wait before each retry attempt.Modifier and TypeMethodDescriptionRetryStrategies.Builder.intervalFunction
(IntervalFunction f) Set a function to modify the waiting interval after a failure.