| Package | Description |
|---|---|
| net.tascalate.concurrent | |
| net.tascalate.concurrent.delays |
| Modifier and Type | Field and Description |
|---|---|
static DelayPolicy<Object> |
DelayPolicy.DEFAULT |
static DelayPolicy<Object> |
DelayPolicy.INVALID |
| Modifier and Type | Method and Description |
|---|---|
default <D extends DelayPolicy<T>> |
DelayPolicy.withCusomizer(Function<? super DelayPolicy<T>,D> fn) |
| Modifier and Type | Method and Description |
|---|---|
static <T> DelayPolicy<T> |
DelayPolicy.exponential(double multiplier) |
static <T> DelayPolicy<T> |
DelayPolicy.exponential(Duration initialDelay,
double multiplier) |
static <T> DelayPolicy<T> |
DelayPolicy.exponential(long initialDelayMillis,
double multiplier) |
static <T> DelayPolicy<T> |
DelayPolicy.exponential(long initialDelay,
TimeUnit timeUnit,
double multiplier) |
static <T> DelayPolicy<T> |
DelayPolicy.fixedInterval() |
static <T> DelayPolicy<T> |
DelayPolicy.fixedInterval(Duration interval) |
static <T> DelayPolicy<T> |
DelayPolicy.fixedInterval(long intervalMillis) |
static <T> DelayPolicy<T> |
DelayPolicy.fixedInterval(long interval,
TimeUnit timeUnit) |
default DelayPolicy<T> |
DelayPolicy.withFirstRetryNoDelay() |
default DelayPolicy<T> |
DelayPolicy.withMaxDelay() |
default DelayPolicy<T> |
DelayPolicy.withMaxDelay(Duration maxDelay) |
default DelayPolicy<T> |
DelayPolicy.withMaxDelay(long maxDelayMillis) |
default DelayPolicy<T> |
DelayPolicy.withMaxDelay(long maxDelay,
TimeUnit timeUnit) |
default DelayPolicy<T> |
DelayPolicy.withMinDelay() |
default DelayPolicy<T> |
DelayPolicy.withMinDelay(Duration minDelay) |
default DelayPolicy<T> |
DelayPolicy.withMinDelay(long minDelayMillis) |
default DelayPolicy<T> |
DelayPolicy.withMinDelay(long minDelay,
TimeUnit timeUnit) |
default DelayPolicy<T> |
DelayPolicy.withOnFailureNoDelay() |
default DelayPolicy<T> |
DelayPolicy.withOnSuccessNoDelay() |
default DelayPolicy<T> |
DelayPolicy.withProportionalJitter() |
default DelayPolicy<T> |
DelayPolicy.withProportionalJitter(double multiplier) |
default DelayPolicy<T> |
DelayPolicy.withUniformJitter() |
default DelayPolicy<T> |
DelayPolicy.withUniformJitter(Duration range) |
default DelayPolicy<T> |
DelayPolicy.withUniformJitter(long range) |
default DelayPolicy<T> |
DelayPolicy.withUniformJitter(long range,
TimeUnit timeUnit) |
| Modifier and Type | Method and Description |
|---|---|
RetryPolicy<T> |
RetryPolicy.withBackoff(DelayPolicy<? super T> backoff) |
RetryPolicy<T> |
RetryPolicy.withTimeout(DelayPolicy<? super T> timeout) |
| Modifier and Type | Method and Description |
|---|---|
default <D extends DelayPolicy<T>> |
DelayPolicy.withCusomizer(Function<? super DelayPolicy<T>,D> fn) |
| Constructor and Description |
|---|
RetryPolicy(int maxRetries,
DelayPolicy<? super T> backoff) |
RetryPolicy(int maxRetries,
DelayPolicy<? super T> backoff,
DelayPolicy<? super T> timeout) |
RetryPolicy(int maxRetries,
DelayPolicy<? super T> backoff,
DelayPolicy<? super T> timeout) |
RetryPolicy(int maxRetries,
Predicate<? super T> resultValidator,
DelayPolicy<? super T> backoff) |
RetryPolicy(int maxRetries,
Predicate<? super T> resultValidator,
DelayPolicy<? super T> backoff,
DelayPolicy<? super T> timeout) |
RetryPolicy(int maxRetries,
Predicate<? super T> resultValidator,
DelayPolicy<? super T> backoff,
DelayPolicy<? super T> timeout) |
RetryPolicy(int maxRetries,
Predicate<? super T> resultValidator,
Set<Class<? extends Throwable>> retryOn,
Set<Class<? extends Throwable>> abortOn,
Predicate<RetryContext<? extends T>> retryPredicate,
Predicate<RetryContext<? extends T>> abortPredicate,
DelayPolicy<? super T> backoff,
DelayPolicy<? super T> timeout) |
RetryPolicy(int maxRetries,
Predicate<? super T> resultValidator,
Set<Class<? extends Throwable>> retryOn,
Set<Class<? extends Throwable>> abortOn,
Predicate<RetryContext<? extends T>> retryPredicate,
Predicate<RetryContext<? extends T>> abortPredicate,
DelayPolicy<? super T> backoff,
DelayPolicy<? super T> timeout) |
| Modifier and Type | Class and Description |
|---|---|
class |
BoundedMaxDelayPolicy<T> |
class |
BoundedMinDelayPolicy<T> |
class |
DelayPolicyWrapper<T> |
class |
ExponentialDelayPolicy<T> |
class |
FirstRetryNoDelayPolicy<T> |
class |
FixedIntervalDelayPolicy<T> |
class |
OnFailureNoDelayPolicy<T> |
class |
OnSuccessNoDelayPolicy<T> |
class |
ProportionalRandomDelayPolicy<T> |
class |
RandomDelayPolicy<T> |
class |
UniformRandomDelayPolicy<T> |
| Modifier and Type | Field and Description |
|---|---|
protected DelayPolicy<? super T> |
DelayPolicyWrapper.target |
Copyright © 2021. All rights reserved.