public class ThreadPerChannelEventLoop extends SingleThreadEventLoop
SingleThreadEventLoop which is used to handle OIO Channel's. So in general there will be
one ThreadPerChannelEventLoop per Channel.| Constructor and Description |
|---|
ThreadPerChannelEventLoop(ThreadPerChannelEventLoopGroup parent) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
deregister() |
ChannelFuture |
register(Channel channel,
ChannelPromise promise)
|
protected void |
run() |
asInvoker, next, parent, register, unwrap, wakesUpForTaskaddShutdownHook, addTask, awaitTermination, cleanup, cleanupAndTerminate, confirmShutdown, delayNanos, execute, hasTasks, inEventLoop, isShutdown, isShuttingDown, isTerminated, newTaskQueue, peekTask, pendingTasks, pollTask, reject, removeShutdownHook, removeTask, runAllTasks, runAllTasks, scheduleExecution, shutdown, shutdownGracefully, takeTask, terminationFuture, updateLastExecutionTime, wakeupcancelScheduledTasks, hasScheduledTasks, nanoTime, nextScheduledTaskNano, pollScheduledTask, pollScheduledTask, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelaychildren, close, inEventLoop, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, newTaskFor, newTaskFor, shutdownGracefully, shutdownNow, submit, submit, submitinvokeAll, invokeAll, invokeAny, invokeAnyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchildren, inEventLoop, inEventLoop, newFailedFuture, newProgressivePromise, newPromise, newSucceededFutureisShuttingDown, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, submit, submit, submit, terminationFutureawaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminatedclosepublic ThreadPerChannelEventLoop(ThreadPerChannelEventLoopGroup parent)
public ChannelFuture register(Channel channel, ChannelPromise promise)
EventLoopGroupChannel with an EventLoop from this EventLoopGroup. The provided
ChannelPromise will get notified once the registration is completed. The returned ChannelFuture
is the same ChannelPromise that was passed to the method.
It's only safe to submit a new task to the EventLoop from within a
ChannelHandler once the ChannelPromise succeeded. Otherwise
the task may or may not be rejected.
register in interface EventLoopGroupregister in class SingleThreadEventLoopprotected void run()
run in class SingleThreadEventExecutorprotected void deregister()
Copyright © 2008–2015 The Netty Project. All rights reserved.