@Deprecated public class ThreadPerChannelEventLoop extends SingleThreadEventLoop
SingleThreadEventLoop which is used to handle OIO Channel's. So in general there will be
one ThreadPerChannelEventLoop per Channel.SingleThreadEventLoop.ChannelsReadOnlyIterator<T extends Channel>SingleThreadEventExecutor.NonWakeupRunnableAbstractEventExecutor.LazyRunnableDEFAULT_MAX_PENDING_TASKS| 构造器和说明 |
|---|
ThreadPerChannelEventLoop(ThreadPerChannelEventLoopGroup parent)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
deregister()
已过时。
|
ChannelFuture |
register(Channel channel,
ChannelPromise promise)
已过时。
|
ChannelFuture |
register(ChannelPromise promise)
已过时。
|
int |
registeredChannels()
已过时。
|
protected void |
run()
已过时。
Run the tasks in the
SingleThreadEventExecutor.taskQueue |
afterRunningAllTasks, executeAfterEventLoopIteration, hasTasks, next, parent, pendingTasks, register, registeredChannelsIteratoraddShutdownHook, addTask, awaitTermination, cleanup, confirmShutdown, deadlineNanos, delayNanos, execute, inEventLoop, interruptThread, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isShuttingDown, isTerminated, lazyExecute, newTaskQueue, newTaskQueue, peekTask, pollTask, pollTaskFrom, reject, reject, removeShutdownHook, removeTask, runAllTasks, runAllTasks, runAllTasksFrom, runScheduledAndExecutorTasks, shutdown, shutdownGracefully, takeTask, terminationFuture, threadProperties, updateLastExecutionTime, wakesUpForTask, wakeupafterScheduledTaskSubmitted, beforeScheduledTaskSubmitted, cancelScheduledTasks, deadlineToDelayNanos, getCurrentTimeNanos, hasScheduledTasks, initialNanoTime, nanoTime, nextScheduledTaskDeadlineNanos, nextScheduledTaskNano, pollScheduledTask, pollScheduledTask, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, validateScheduledinEventLoop, iterator, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, newTaskFor, newTaskFor, runTask, safeExecute, shutdownGracefully, shutdownNow, submit, submit, submitclone, 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, terminationFuturepublic ThreadPerChannelEventLoop(ThreadPerChannelEventLoopGroup parent)
public ChannelFuture register(ChannelPromise promise)
EventLoopGroupChannel with this EventLoop using a ChannelFuture. The passed
ChannelFuture will get notified once the registration was complete and also will get returned.register 在接口中 EventLoopGroupregister 在类中 SingleThreadEventLoop@Deprecated public 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 在接口中 EventLoopGroupregister 在类中 SingleThreadEventLoopprotected void run()
SingleThreadEventExecutorSingleThreadEventExecutor.taskQueuerun 在类中 SingleThreadEventExecutorprotected void deregister()
public int registeredChannels()
SingleThreadEventLoop