Uses of Interface
com.hazelcast.jet.retry.IntervalFunction
Package | Description |
---|---|
com.hazelcast.jet.retry |
Interfaces and utility classes for defining and tracking various types of
retry behaviour.
|
-
Uses of IntervalFunction in com.hazelcast.jet.retry
Methods in com.hazelcast.jet.retry that return IntervalFunction Modifier and Type Method Description static 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, ...).IntervalFunction
RetryStrategy. getIntervalFunction()
Function specifying how much time to wait before each retry attempt.Methods in com.hazelcast.jet.retry with parameters of type IntervalFunction Modifier and Type Method Description RetryStrategies.Builder
RetryStrategies.Builder. intervalFunction(IntervalFunction f)
Set a function to modify the waiting interval after a failure.