Package | Description |
---|---|
com.hazelcast.jet.retry |
Interfaces and utility classes for defining and tracking various types of
retry behaviour.
|
Modifier and Type | Method and Description |
---|---|
static IntervalFunction |
IntervalFunction.constant(long intervalMs)
Creates an
IntervalFunction which returns a fixed interval in
milliseconds. |
static IntervalFunction |
IntervalFunction.exponentialBackoff(long intervalMillis,
double multiplier)
Creates an
IntervalFunction 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 an
IntervalFunction 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.
|
Modifier and Type | Method and Description |
---|---|
RetryStrategies.Builder |
RetryStrategies.Builder.intervalFunction(IntervalFunction f)
Set a function to modify the waiting interval after a failure.
|
Copyright © 2021 Hazelcast, Inc.. All rights reserved.