public final class NioEventLoop extends SingleThreadEventLoop
SingleThreadEventLoop implementation which register the Channel's to a
Selector and so does the multi-plexing of these in the event loop.| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanup() |
protected Queue<Runnable> |
newTaskQueue() |
void |
register(SelectableChannel ch,
int interestOps,
NioTask<?> task)
Registers an arbitrary
SelectableChannel, not necessarily created by Netty, to the Selector
of this event loop. |
protected void |
run() |
protected void |
wakeup(boolean inEventLoop) |
next, parent, register, registeraddShutdownHook, addTask, awaitTermination, currentEventLoop, execute, hasTasks, inEventLoop, inEventLoop, interruptThread, isShutdown, isTerminated, peekTask, pollTask, removeShutdownHook, removeTask, runAllTasks, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownNow, takeTaskinvokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinEventLoop, inEventLoopschedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelayawaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submitawaitTermination, isShutdown, isTerminated, shutdownprotected Queue<Runnable> newTaskQueue()
newTaskQueue in class SingleThreadEventExecutorpublic void register(SelectableChannel ch, int interestOps, NioTask<?> task)
SelectableChannel, not necessarily created by Netty, to the Selector
of this event loop. Once the specified SelectableChannel is registered, the specified task will
be executed by this event loop when the SelectableChannel is ready.protected void run()
run in class SingleThreadEventExecutorprotected void cleanup()
cleanup in class SingleThreadEventExecutorprotected void wakeup(boolean inEventLoop)
wakeup in class SingleThreadEventExecutorCopyright © 2008-2012 The Netty Project. All Rights Reserved.