| Modifier and Type | Method and Description |
|---|---|
static void |
Unreliable.keepTrying(RunnableWithException r)
Performs an action until no exception is thrown.
|
static void |
LongTransactions.longTransaction(RunnableWithException r)
Defines the transaction boundaries.
|
static VoidTransaction |
Transactions.perform(RunnableWithException r)
Builds an
VoidTransaction that can have a rollback and/or a commit. |
static void |
Unreliable.retryOn(Class exceptionClass,
RunnableWithException r)
Tries to execute the supplied runnable up to three times as long as the specified exception is being thrown.
|
static void |
Unreliable.retryOn(Class exceptionClass,
RunnableWithException r,
int times)
Tries to execute the supplied runnable up to the specified number of times as long as the specified exception is being thrown.
|
static void |
Unreliable.retryOn(Collection<Class> exceptionClasses,
RunnableWithException r)
Tries to execute the runnable up to three times as long as one of the specified exceptions is being thrown.
|
static void |
Unreliable.retryOn(Collection<Class> exceptionClasses,
RunnableWithException r,
int times)
Tries to execute the runnable up to the specified number of times as long as one of the specified exceptions is being thrown.
|
static void |
Unreliable.tenaciously(RunnableWithException r)
Performs an action up to three times until no exception is thrown.
|
static void |
Unreliable.tenaciously(RunnableWithException r,
int times)
Performs an action up to the specified number of times until no exception is thrown.
|
| Constructor and Description |
|---|
VoidTransaction(RunnableWithException operation)
Constructs a lightweight transaction that can have a rollback and a commit.
|
Copyright © 2019. All rights reserved.