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, wakesUpForTask
addShutdownHook, 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, wakeup
cancelScheduledTasks, hasScheduledTasks, nanoTime, nextScheduledTaskNano, pollScheduledTask, pollScheduledTask, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay
children, close, inEventLoop, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, newTaskFor, newTaskFor, shutdownGracefully, shutdownNow, submit, submit, submit
invokeAll, invokeAll, invokeAny, invokeAny
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
children, inEventLoop, inEventLoop, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture
isShuttingDown, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, submit, submit, submit, terminationFuture
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated
close
public ThreadPerChannelEventLoop(ThreadPerChannelEventLoopGroup parent)
public ChannelFuture register(Channel channel, ChannelPromise promise)
EventLoopGroup
Channel
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 EventLoopGroup
register
in class SingleThreadEventLoop
protected void run()
run
in class SingleThreadEventExecutor
protected void deregister()
Copyright © 2008–2015 The Netty Project. All rights reserved.