Package | Description |
---|---|
ratpack.exec |
The execution management.
|
ratpack.handling |
The handling of application requests.
|
ratpack.logging |
Utility classes for integration Ratpack with various logging frameworks.
|
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.current()
Provides the currently executing execution.
|
Modifier and Type | Method and Description |
---|---|
void |
ExecInitializer.init(Execution execution)
Called before the execution is started in order to perform any initialisation.
|
void |
ExecInterceptor.intercept(Execution execution,
ExecInterceptor.ExecType execType,
Block executionSegment)
Intercepts the execution of an execution segment.
|
Modifier and Type | Method and Description |
---|---|
ExecStarter |
ExecStarter.onComplete(Action<? super Execution> onComplete)
Specifies the completion callback for the execution.
|
ExecStarter |
ExecStarter.onStart(Action<? super Execution> onStart)
Specifies an action to be taken just before the execution starts.
|
void |
ExecStarter.start(Action<? super Execution> initialExecutionSegment)
Starts the execution, with the given action as the initial segment.
|
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 execType,
Block executionSegment) |
Modifier and Type | Method and Description |
---|---|
static MDCInterceptor |
MDCInterceptor.withInit(Action<? super Execution> init)
Creates an interceptor with the given initialisation action.
|
Modifier and Type | Method and Description |
---|---|
default void |
ExecHarness.execute(Function<? super Execution,? extends Operation> function) |
static void |
ExecHarness.executeSingle(Function<? super Execution,? extends Operation> function) |
default void |
ExecHarness.run(Action<? super Execution> action)
Initiates an execution and blocks until it completes.
|
void |
ExecHarness.run(Action<? super RegistrySpec> registry,
Action<? super Execution> action)
Initiates an execution and blocks until it completes.
|
static void |
ExecHarness.runSingle(Action<? super Execution> action)
Convenient form of
ExecHarness.run(Action) that creates and closes a harness for the run. |
static void |
ExecHarness.runSingle(Action<? super RegistrySpec> registry,
Action<? super Execution> action)
Convenient form of
ExecHarness.run(Action, Action) that creates and closes a harness for the run. |
<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. |