public abstract class SingleThreadEventLoop extends SingleThreadEventExecutor implements EventLoop
EventLoops that execute all its submitted tasks in a single thread.| Modifier | Constructor and Description |
|---|---|
protected |
SingleThreadEventLoop(EventLoopGroup parent,
Executor executor,
boolean addTaskWakesUp) |
protected |
SingleThreadEventLoop(EventLoopGroup parent,
ThreadFactory threadFactory,
boolean addTaskWakesUp) |
| Modifier and Type | Method and Description |
|---|---|
ChannelHandlerInvoker |
asInvoker()
Creates a new default
ChannelHandlerInvoker implementation that uses this EventLoop to
invoke event handler methods. |
EventLoop |
next()
Returns a reference to itself.
|
EventLoopGroup |
parent()
Return the
EventExecutorGroup which is the parent of this EventExecutor, |
addShutdownHook, addTask, awaitTermination, cleanup, confirmShutdown, delayNanos, execute, hasTasks, inEventLoop, interruptThread, isShutdown, isShuttingDown, isTerminated, newTaskQueue, peekTask, pendingTasks, pollTask, reject, removeShutdownHook, removeTask, run, runAllTasks, runAllTasks, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, takeTask, terminationFuture, updateLastExecutionTime, wakeupchildren, 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, newSucceededFuture, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, submit, submit, submitisShuttingDown, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, terminationFutureawaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminatedprotected SingleThreadEventLoop(EventLoopGroup parent, ThreadFactory threadFactory, boolean addTaskWakesUp)
protected SingleThreadEventLoop(EventLoopGroup parent, Executor executor, boolean addTaskWakesUp)
public EventLoopGroup parent()
EventExecutorEventExecutorGroup which is the parent of this EventExecutor,parent in interface EventLoopparent in interface EventExecutorparent in class AbstractEventExecutorpublic EventLoop next()
EventExecutornext in interface EventLoopnext in interface EventLoopGroupnext in interface EventExecutornext in interface EventExecutorGroupnext in class AbstractEventExecutorpublic ChannelHandlerInvoker asInvoker()
EventLoopChannelHandlerInvoker implementation that uses this EventLoop to
invoke event handler methods.Copyright © 2008–2013 The Netty Project. All rights reserved.