public abstract class SingleThreadEventLoop extends io.netty.util.concurrent.SingleThreadEventExecutor implements EventLoop
EventLoop's that execute all its submitted tasks in a single thread.| Modifier | Constructor and Description |
|---|---|
protected |
SingleThreadEventLoop(EventLoopGroup parent,
ThreadFactory threadFactory,
boolean addTaskWakesUp) |
| Modifier and Type | Method and Description |
|---|---|
EventLoop |
next()
Return the next
EventLoop to use |
EventLoopGroup |
parent() |
ChannelFuture |
register(Channel channel)
|
ChannelFuture |
register(Channel channel,
ChannelPromise promise)
|
protected boolean |
wakesUpForTask(Runnable task) |
addShutdownHook, addTask, awaitTermination, cleanup, confirmShutdown, delayNanos, execute, hasScheduledTasks, 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, wakeupinEventLoop, iterator, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, newTaskFor, newTaskFor, shutdownGracefully, shutdownNow, submit, submit, submitinvokeAll, invokeAll, invokeAny, invokeAnyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinEventLoop, inEventLoop, newFailedFuture, newProgressivePromise, newPromise, newSucceededFutureisShuttingDown, iterator, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, submit, submit, submit, terminationFutureawaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminatedprotected SingleThreadEventLoop(EventLoopGroup parent, ThreadFactory threadFactory, boolean addTaskWakesUp)
SingleThreadEventExecutor#SingleThreadEventExecutor(EventExecutorGroup, ThreadFactory, boolean)}public EventLoopGroup parent()
public EventLoop next()
EventLoopGroupEventLoop to usenext in interface EventLoopGroupnext in interface io.netty.util.concurrent.EventExecutornext in interface io.netty.util.concurrent.EventExecutorGroupnext in class io.netty.util.concurrent.AbstractEventExecutorpublic 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, ChannelPromise promise)
EventLoopGroupChannel with this EventLoop. The passed ChannelFuture
will get notified once the registration was complete and also will get returned.register in interface EventLoopGroupprotected boolean wakesUpForTask(Runnable task)
wakesUpForTask in class io.netty.util.concurrent.SingleThreadEventExecutorCopyright © 2008–2014 The Netty Project. All rights reserved.