| Modifier and Type | Method and Description |
|---|---|
static ExceptionHandler |
ExceptionHandlers.chain(ExceptionHandler... handlers)
Chain a series of ExceptionHandlers together to be executed subsequently;
if one throws an exception, subsequent handlers will not be executed.
|
static ExceptionHandler |
ExceptionHandlers.ignoreExceptionHandler()
ignoreExceptionHandler.
|
static ExceptionHandler |
ExceptionHandlers.loggingExceptionHandler(org.slf4j.Logger logger)
Retrieves an
ExceptionHandler which will
log exceptions passed in. |
| Modifier and Type | Method and Description |
|---|---|
static ExceptionHandler |
ExceptionHandlers.chain(ExceptionHandler... handlers)
Chain a series of ExceptionHandlers together to be executed subsequently;
if one throws an exception, subsequent handlers will not be executed.
|
static <A,B> Function<A,B> |
RetryFactory.create(Function<A,B> function,
int tries,
ExceptionHandler handler)
Decorates a function so that it retries a number of times before being
allowed to fail.
|
static <A,B> Function<A,B> |
RetryFactory.create(Function<A,B> function,
int tries,
ExceptionHandler handler,
long backoff)
Decorates a function so that it retries a number of times before being
allowed to fail.
|
static Runnable |
RetryFactory.create(Runnable task,
int tries,
ExceptionHandler handler)
Decorates a runnable so that it retries a number of times before being
allowed to fail.
|
static Runnable |
RetryFactory.create(Runnable task,
int tries,
ExceptionHandler handler,
long backoff)
Decorates a runnable so that it retries a number of times before being
allowed to fail, backing off exponentially in time.
|
static <A> Supplier<A> |
RetryFactory.create(Supplier<A> supplier,
int tries,
ExceptionHandler handler)
Decorates a supplier so that it retries a number of times before being
allowed to fail.
|
static <A> Supplier<A> |
RetryFactory.create(Supplier<A> supplier,
int tries,
ExceptionHandler handler,
long backoff)
Decorates a supplier so that it retries a number of times before being
allowed to fail, backing-off in time exponentially.
|
| Constructor and Description |
|---|
RetryFunction(Function<F,T> function,
int tries,
ExceptionHandler handler)
An instance that does nothing before retrying.
|
RetryFunction(Function<F,T> function,
int tries,
ExceptionHandler handler,
Runnable beforeRetry)
Constructor for RetryFunction.
|
RetrySupplier(Supplier<T> supplier,
int tries,
ExceptionHandler handler)
An instance that does nothing before retrying.
|
RetrySupplier(Supplier<T> supplier,
int tries,
ExceptionHandler handler,
Runnable beforeRetry)
Constructor for RetrySupplier.
|
RetryTask(Runnable task,
int tries,
ExceptionHandler handler)
An instance that does nothing before retrying.
|
RetryTask(Runnable task,
int tries,
ExceptionHandler handler,
Runnable beforeRetry)
Constructor for RetryTask.
|
Copyright © 2017 Atlassian. All rights reserved.