@Deprecated public static final class Callables.FibonacciBackoffRetryPredicate<T,R> extends Object implements Callables.RetryPredicate<T,R>
NORETRY_DELAY_PREDICATE
Constructor and Description |
---|
FibonacciBackoffRetryPredicate(Callables.AdvancedRetryPredicate<T> arp,
int nrImmediateRetries,
long minWaitUnits,
long maxWaitUnits,
Function<T,?> mapper,
long deadline,
LongSupplier currTimeSuplier,
TimeUnit tu)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Callables.RetryDecision<R> |
getDecision(T value,
Callable<R> callable)
Deprecated.
the number or millis of delay until the next retry, or -1 for abort.
|
public FibonacciBackoffRetryPredicate(Callables.AdvancedRetryPredicate<T> arp, int nrImmediateRetries, long minWaitUnits, long maxWaitUnits, Function<T,?> mapper, long deadline, LongSupplier currTimeSuplier, TimeUnit tu)
public Callables.RetryDecision<R> getDecision(T value, Callable<R> callable)
Callables.RetryPredicate
getDecision
in interface Callables.RetryPredicate<T,R>
Copyright © 2018 SPF4J. All rights reserved.