Package io.github.resilience4j.retry
Interface IntervalFunction
- All Superinterfaces:
java.util.function.Function<java.lang.Integer,java.lang.Long>,io.github.resilience4j.core.IntervalFunction
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
@Deprecated
public interface IntervalFunction
extends io.github.resilience4j.core.IntervalFunction
Deprecated.
Use io.github.resilience4j.core.IntervalFunction instead, this class kept for backwards
compatibility
-
Field Summary
Fields Modifier and Type Field Description static longDEFAULT_INITIAL_INTERVALDeprecated.static doubleDEFAULT_MULTIPLIERDeprecated.static doubleDEFAULT_RANDOMIZATION_FACTORDeprecated. -
Method Summary
Modifier and Type Method Description static IntervalFunctionof(long intervalMillis)Deprecated.static IntervalFunctionof(long intervalMillis, java.util.function.Function<java.lang.Long,java.lang.Long> backoffFunction)Deprecated.static IntervalFunctionof(java.time.Duration interval)Deprecated.static IntervalFunctionof(java.time.Duration interval, java.util.function.Function<java.lang.Long,java.lang.Long> backoffFunction)Deprecated.static IntervalFunctionofDefaults()Deprecated.static IntervalFunctionofExponentialBackoff()Deprecated.static IntervalFunctionofExponentialBackoff(long initialIntervalMillis)Deprecated.static IntervalFunctionofExponentialBackoff(long initialIntervalMillis, double multiplier)Deprecated.static IntervalFunctionofExponentialBackoff(java.time.Duration initialInterval)Deprecated.static IntervalFunctionofExponentialBackoff(java.time.Duration initialInterval, double multiplier)Deprecated.static IntervalFunctionofExponentialRandomBackoff()Deprecated.static IntervalFunctionofExponentialRandomBackoff(long initialIntervalMillis)Deprecated.static IntervalFunctionofExponentialRandomBackoff(long initialIntervalMillis, double multiplier)Deprecated.static IntervalFunctionofExponentialRandomBackoff(long initialIntervalMillis, double multiplier, double randomizationFactor)Deprecated.static IntervalFunctionofExponentialRandomBackoff(java.time.Duration initialInterval)Deprecated.static IntervalFunctionofExponentialRandomBackoff(java.time.Duration initialInterval, double multiplier)Deprecated.static IntervalFunctionofExponentialRandomBackoff(java.time.Duration initialInterval, double multiplier, double randomizationFactor)Deprecated.static IntervalFunctionofRandomized()Deprecated.static IntervalFunctionofRandomized(long interval)Deprecated.static IntervalFunctionofRandomized(long intervalMillis, double randomizationFactor)Deprecated.static IntervalFunctionofRandomized(java.time.Duration interval)Deprecated.static IntervalFunctionofRandomized(java.time.Duration interval, double randomizationFactor)Deprecated.
-
Field Details
-
DEFAULT_INITIAL_INTERVAL
static final long DEFAULT_INITIAL_INTERVALDeprecated.- See Also:
- Constant Field Values
-
DEFAULT_MULTIPLIER
static final double DEFAULT_MULTIPLIERDeprecated.- See Also:
- Constant Field Values
-
DEFAULT_RANDOMIZATION_FACTOR
static final double DEFAULT_RANDOMIZATION_FACTORDeprecated.- See Also:
- Constant Field Values
-
-
Method Details
-
ofDefaults
Deprecated. -
of
static IntervalFunction of(long intervalMillis, java.util.function.Function<java.lang.Long,java.lang.Long> backoffFunction)Deprecated. -
of
static IntervalFunction of(java.time.Duration interval, java.util.function.Function<java.lang.Long,java.lang.Long> backoffFunction)Deprecated. -
of
Deprecated. -
of
Deprecated. -
ofRandomized
Deprecated. -
ofRandomized
Deprecated. -
ofRandomized
Deprecated. -
ofRandomized
Deprecated. -
ofRandomized
Deprecated. -
ofExponentialBackoff
Deprecated. -
ofExponentialBackoff
static IntervalFunction ofExponentialBackoff(java.time.Duration initialInterval, double multiplier)Deprecated. -
ofExponentialBackoff
Deprecated. -
ofExponentialBackoff
Deprecated. -
ofExponentialBackoff
Deprecated. -
ofExponentialRandomBackoff
static IntervalFunction ofExponentialRandomBackoff(long initialIntervalMillis, double multiplier, double randomizationFactor)Deprecated. -
ofExponentialRandomBackoff
static IntervalFunction ofExponentialRandomBackoff(java.time.Duration initialInterval, double multiplier, double randomizationFactor)Deprecated. -
ofExponentialRandomBackoff
Deprecated. -
ofExponentialRandomBackoff
static IntervalFunction ofExponentialRandomBackoff(java.time.Duration initialInterval, double multiplier)Deprecated. -
ofExponentialRandomBackoff
Deprecated. -
ofExponentialRandomBackoff
Deprecated. -
ofExponentialRandomBackoff
Deprecated.
-