public class NettyEventLoopDispatcher
extends reactor.event.dispatch.AbstractMultiThreadDispatcher
Dispatcher that runs tasks on a Netty EventLoop.| Constructor and Description |
|---|
NettyEventLoopDispatcher(io.netty.channel.EventLoop eventLoop,
int backlog)
Creates a new Netty event loop-based dispatcher that will run tasks on the given
eventLoop with the given
backlog size. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitAndShutdown(long timeout,
java.util.concurrent.TimeUnit timeUnit) |
protected void |
execute(reactor.event.dispatch.AbstractLifecycleDispatcher.Task task) |
void |
execute(java.lang.Runnable command) |
void |
halt() |
void |
shutdown() |
addToTailRecursionPile, allocateRecursiveTask, allocateTask, getBacklogpublic NettyEventLoopDispatcher(io.netty.channel.EventLoop eventLoop,
int backlog)
eventLoop with the given
backlog size.eventLoop - The event loop to run tasks onbacklog - The size of the backlog of unexecuted taskspublic boolean awaitAndShutdown(long timeout,
java.util.concurrent.TimeUnit timeUnit)
public void shutdown()
shutdown in interface reactor.event.dispatch.Dispatchershutdown in class reactor.event.dispatch.AbstractLifecycleDispatcherpublic void halt()
halt in interface reactor.event.dispatch.Dispatcherhalt in class reactor.event.dispatch.AbstractLifecycleDispatcherprotected void execute(reactor.event.dispatch.AbstractLifecycleDispatcher.Task task)
execute in class reactor.event.dispatch.AbstractLifecycleDispatcherpublic void execute(java.lang.Runnable command)
execute in interface java.util.concurrent.Executorexecute in class reactor.event.dispatch.AbstractLifecycleDispatcher