public abstract class SingleThreadEventLoop extends SingleThreadEventExecutor implements EventLoop
| Modifier | Constructor and Description |
|---|---|
protected |
SingleThreadEventLoop(EventLoopGroup parent,
ThreadFactory threadFactory,
ChannelTaskScheduler scheduler) |
| Modifier and Type | Method and Description |
|---|---|
EventLoop |
next()
Returns a reference to itself.
|
EventLoopGroup |
parent()
Return the
EventExecutorGroup which is the parent of this EventExecutor,
or null if it has no parent |
ChannelFuture |
register(Channel channel)
|
ChannelFuture |
register(Channel channel,
ChannelFuture future)
|
addShutdownHook, addTask, awaitTermination, cleanup, currentEventLoop, execute, hasTasks, inEventLoop, inEventLoop, interruptThread, isShutdown, isTerminated, newTaskQueue, peekTask, pollTask, removeShutdownHook, removeTask, run, runAllTasks, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownNow, takeTask, wakeupinvokeAll, 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 SingleThreadEventLoop(EventLoopGroup parent, ThreadFactory threadFactory, ChannelTaskScheduler scheduler)
public EventLoopGroup parent()
EventExecutorEventExecutorGroup which is the parent of this EventExecutor,
or null if it has no parentparent in interface EventExecutorparent in interface EventLoopparent in class SingleThreadEventExecutorpublic EventLoop next()
EventExecutornext in interface EventExecutornext in interface EventExecutorGroupnext in interface EventLoopGroupnext in class SingleThreadEventExecutorpublic ChannelFuture register(Channel channel)
EventLoopGroupChannel with this EventLoop. The returned ChannelFuture
will get notified once the registration was complete.register in interface EventLoopGrouppublic ChannelFuture register(Channel channel, ChannelFuture future)
EventLoopGroupChannel with this EventLoop. The passed ChannelFuture
will get notified once the registration was complete and also will get returned.register in interface EventLoopGroupCopyright © 2008-2012 The Netty Project. All Rights Reserved.