public interface ExecController extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close() |
ExecControl |
getControl()
A singleton that can be used from any managed thread to perform asynchronous or blocking operations.
|
EventLoopGroup |
getEventLoopGroup()
The event loop group used by Netty for this application.
|
Execution |
getExecution()
Provides the current context on the current thread.
|
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 |
start(Action<? super Execution> action) |
@NonBlocking void start(Action<? super Execution> action)
action
- Execution getExecution() throws ExecutionException
This method is primarily provided for integration with dependency injection frameworks.
ExecutionException
- 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()
Generally there is no need to access this unless you are doing something directly with Netty.
boolean isManagedThread()
void close()
close
in interface AutoCloseable