Package | Description |
---|---|
ratpack.exec |
The execution management.
|
ratpack.handling |
The handling of application requests.
|
ratpack.logging | |
ratpack.test.exec |
Modifier and Type | Method and Description |
---|---|
default <O> Execution |
Execution.add(Class<? super O> type,
O object)
Adds a registry entry that is available by the given type.
|
default Execution |
Execution.add(Object object)
Adds a registry entry.
|
default <O> Execution |
Execution.add(TypeToken<? super O> type,
O object)
Adds a registry entry that is available by the given type.
|
default <O> Execution |
Execution.addLazy(Class<O> type,
Supplier<? extends O> supplier)
Adds a lazily created entry to the registry.
|
<O> Execution |
Execution.addLazy(TypeToken<O> type,
Supplier<? extends O> supplier)
Adds a lazily created entry to the registry.
|
static Execution |
Execution.execution()
Provides the currently execution execution.
|
Execution |
ExecControl.getExecution() |
Modifier and Type | Method and Description |
---|---|
void |
ExecInterceptor.intercept(Execution execution,
ExecInterceptor.ExecType execType,
Block continuation)
Intercepts the “rest” of the execution on the current thread.
|
Modifier and Type | Method and Description |
---|---|
ExecBuilder |
ExecBuilder.onComplete(Action<? super Execution> onComplete)
Specifies the completion callback for the execution.
|
ExecBuilder |
ExecBuilder.onError(BiAction<? super Execution,? super Throwable> onError)
Specify the top level error handler for the execution.
|
void |
ExecBuilder.start(Action<? super Execution> action)
Initiate the new execution.
|
Modifier and Type | Method and Description |
---|---|
Execution |
Context.getExecution()
The execution of handling this request.
|
Modifier and Type | Method and Description |
---|---|
void |
MDCInterceptor.intercept(Execution execution,
ExecInterceptor.ExecType type,
Block continuation) |
Modifier and Type | Method and Description |
---|---|
default Execution |
ExecHarness.getExecution() |
Modifier and Type | Method and Description |
---|---|
<T> ExecResult<T> |
ExecHarness.yield(Action<? super RegistrySpec> registry,
Function<? super Execution,? extends Promise<T>> func)
Synchronously returns a promised value.
|
default <T> ExecResult<T> |
ExecHarness.yield(Function<? super Execution,? extends Promise<T>> func)
Synchronously returns a promised value.
|
static <T> ExecResult<T> |
ExecHarness.yieldSingle(Action<? super RegistrySpec> registry,
Function<? super Execution,? extends Promise<T>> func)
Creates an exec harness,
executes the given function with it before closing it, then returning execution result. |
static <T> ExecResult<T> |
ExecHarness.yieldSingle(Function<? super Execution,? extends Promise<T>> func)
Creates an exec harness,
executes the given function with it before closing it, then returning execution result. |