Package | Description |
---|---|
ratpack.exec |
The execution management.
|
ratpack.handling |
The handling of application requests.
|
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.
|
Execution |
ExecControl.getExecution() |
Modifier and Type | Method and Description |
---|---|
void |
ExecControl.addInterceptor(ExecInterceptor execInterceptor,
Action<? super Execution> continuation)
Adds an interceptor that wraps the rest of the current execution segment and all future segments of this execution.
|
void |
ExecControl.fork(Action<? super Execution> action)
Forks a new execution on a separate thread.
|
void |
ExecControl.fork(Action<? super Execution> action,
Action<? super Throwable> onError) |
void |
ExecControl.fork(Action<? super Execution> action,
Action<? super Throwable> onError,
Action<? super Execution> onComplete) |
void |
ExecControl.fork(Action<? super Execution> action,
Action<? super Throwable> onError,
Action<? super Execution> onComplete) |
Modifier and Type | Method and Description |
---|---|
Execution |
Context.getExecution()
The execution of handling this request.
|
Modifier and Type | Method and Description |
---|---|
void |
Context.addInterceptor(ExecInterceptor execInterceptor,
Action<? super Execution> continuation) |
void |
Context.fork(Action<? super Execution> action)
Forks a new execution, detached from the current.
|
void |
Context.fork(Action<? super Execution> action,
Action<? super Throwable> onError) |
void |
Context.fork(Action<? super Execution> action,
Action<? super Throwable> onError,
Action<? super Execution> onComplete) |
void |
Context.fork(Action<? super Execution> action,
Action<? super Throwable> onError,
Action<? super Execution> onComplete) |
Modifier and Type | Method and Description |
---|---|
<T> ExecResult<T> |
ExecHarness.execute(Function<Execution,Promise<T>> func)
Synchronously returns a promised value.
|