public interface ExecController
Modifier and Type | Method and Description |
---|---|
void |
exec(ExecContext.Supplier execContextSupplier,
Action<? super ExecContext> action) |
ExecContext |
getContext()
Provides the current context on the current thread.
|
ExecControl |
getControl()
A singleton that can be used from any managed thread to perform asynchronous or blocking operations.
|
EventLoopGroup |
getEventLoopGroup() |
com.google.common.util.concurrent.ListeningScheduledExecutorService |
getExecutor()
The executor that performs computation.
|
boolean |
isManagedThread()
Indicates whether the current thread is managed by this execution controller.
|
void |
onExecFinish(Runnable runnable) |
void |
shutdown() |
ExecContext getContext() throws NoBoundContextException
This method is primarily provided for integration with dependency injection frameworks.
NoBoundContextException
- if this method is called from a thread that is not performing request processingExecControl getControl()
The control can be used by support services that need to perform such operations, of which they can return the promise.
com.google.common.util.concurrent.ListeningScheduledExecutorService getExecutor()
EventLoopGroup getEventLoopGroup()
@NonBlocking void exec(ExecContext.Supplier execContextSupplier, Action<? super ExecContext> action)
boolean isManagedThread()
void onExecFinish(Runnable runnable)