Uses of Interface
com.hazelcast.jet.retry.IntervalFunction
Packages that use IntervalFunction
Package
Description
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 IntervalFunctionModifier and TypeMethodDescriptionstatic IntervalFunctionIntervalFunction.constant(long intervalMs) Creates anIntervalFunctionwhich returns a fixed interval in milliseconds.static IntervalFunctionIntervalFunction.exponentialBackoff(long intervalMillis, double multiplier) Creates anIntervalFunctionwhich 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 IntervalFunctionIntervalFunction.exponentialBackoffWithCap(long intervalMillis, double multiplier, long capMillis) Creates anIntervalFunctionwhich 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.Methods in com.hazelcast.jet.retry with parameters of type IntervalFunctionModifier and TypeMethodDescriptionRetryStrategies.Builder.intervalFunction(IntervalFunction f) Set a function to modify the waiting interval after a failure.