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,
Duration delay,
BiAction<? super Integer,? super Throwable> onError)
Causes
this yielding the promised value to be retried on error, after a fixed delay. |
default Promise<T> |
Promise.timeResult(BiAction<? super ExecResult<T>,? super 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 |
Batch.forEach(BiAction<? super Integer,? super T> consumer)
Processes the promises of the batch, stopping at the first error, emitting results to the given callback.
|
Operation |
ParallelBatch.forEach(BiAction<? super 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 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(BiConsumer<T,U> consumer)
Creates an bi-action from a JDK bi-consumer.
|
static BiAction<Object,Object> |
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.
|