Package | Description |
---|---|
ratpack.exec |
The execution management.
|
ratpack.exec.util | |
ratpack.func |
General functional (i.e. Single Abstract Method) types.
|
ratpack.util |
General purpose types and utilities.
|
Modifier and Type | Method and Description |
---|---|
default Promise<T> |
Promise.retry(int maxAttempts,
java.time.Duration delay,
BiAction<? super java.lang.Integer,? super java.lang.Throwable> onError)
Deprecated.
since 1.7, use
Promise.retry(RetryPolicy, BiAction) |
default Promise<T> |
Promise.retry(RetryPolicy retryPolicy,
BiAction<? super java.lang.Integer,? super java.lang.Throwable> onError)
Causes
this yielding the promised value to be retried on error, under the rules of provided retryPolicy . |
default Promise<T> |
Promise.retryIf(Predicate<? super java.lang.Throwable> predicate,
RetryPolicy retryPolicy,
BiAction<? super java.lang.Integer,? super java.lang.Throwable> onError)
Causes
this yielding the promised value to be retried on error, under the rules of provided retryPolicy ,
and if the given Predicate matches the error thrown. |
default Promise<T> |
Promise.timeResult(BiAction<? super ExecResult<T>,? super java.time.Duration> action)
Emits the time taken from when the promise is subscribed to to when the result is available.
|
Modifier and Type | Method and Description |
---|---|
Operation |
ParallelBatch.forEach(BiAction<? super java.lang.Integer,? super T> consumer)
Processes the promises of the batch, stopping at the first error, emitting results to the given callback.
|
Operation |
Batch.forEach(BiAction<? super java.lang.Integer,? super T> consumer)
Processes the promises of the batch, stopping at the first error, emitting results to the given callback.
|
Operation |
SerialBatch.forEach(BiAction<? super java.lang.Integer,? super T> consumer)
Processes the promises of the batch, stopping at the first error, emitting results to the given callback.
|
Modifier and Type | Method and Description |
---|---|
static <T,U> BiAction<T,U> |
BiAction.from(java.util.function.BiConsumer<T,U> consumer)
Creates an bi-action from a JDK bi-consumer.
|
static <T,U> BiAction<T,U> |
BiAction.noop()
Returns a bi-action that does precisely nothing.
|
Modifier and Type | Method and Description |
---|---|
static <T,U> void |
Exceptions.uncheck(T input1,
U input2,
BiAction<T,U> action)
Executes the given action with the provided input arguments, unchecking any exceptions it throws.
|