public final class DefaultEventExecutor extends SingleThreadEventExecutor
SingleThreadEventExecutor
实现, 它只是以串行方式执行所有提交的任务。
Constructor and Description |
---|
DefaultEventExecutor() |
DefaultEventExecutor(EventExecutorGroup parent) |
DefaultEventExecutor(EventExecutorGroup parent, java.util.concurrent.Executor executor) |
DefaultEventExecutor(EventExecutorGroup parent, java.util.concurrent.Executor executor, int maxPendingTasks, RejectedExecutionHandler rejectedExecutionHandler) |
DefaultEventExecutor(EventExecutorGroup parent, java.util.concurrent.ThreadFactory threadFactory) |
DefaultEventExecutor(EventExecutorGroup parent, java.util.concurrent.ThreadFactory threadFactory, int maxPendingTasks, RejectedExecutionHandler rejectedExecutionHandler) |
DefaultEventExecutor(java.util.concurrent.Executor executor) |
DefaultEventExecutor(java.util.concurrent.ThreadFactory threadFactory) |
Modifier and Type | Method and Description |
---|---|
protected void |
run() |
addShutdownHook, addTask, afterRunningAllTasks, awaitTermination, cleanup, confirmShutdown, delayNanos, execute, hasTasks, inEventLoop, interruptThread, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isShuttingDown, isTerminated, newTaskQueue, newTaskQueue, peekTask, pendingTasks, pollTask, pollTaskFrom, reject, reject, removeShutdownHook, removeTask, runAllTasks, runAllTasks, runAllTasksFrom, shutdown, shutdownGracefully, takeTask, terminationFuture, threadProperties, updateLastExecutionTime, wakesUpForTask, wakeup
cancelScheduledTasks, hasScheduledTasks, nanoTime, nextScheduledTaskNano, pollScheduledTask, pollScheduledTask, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay
inEventLoop, iterator, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, newTaskFor, newTaskFor, next, parent, safeExecute, shutdownGracefully, shutdownNow, submit, submit, submit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
inEventLoop, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, next, parent
iterator, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownNow, submit, submit, submit
public DefaultEventExecutor()
public DefaultEventExecutor(java.util.concurrent.ThreadFactory threadFactory)
public DefaultEventExecutor(java.util.concurrent.Executor executor)
public DefaultEventExecutor(EventExecutorGroup parent)
public DefaultEventExecutor(EventExecutorGroup parent, java.util.concurrent.ThreadFactory threadFactory)
public DefaultEventExecutor(EventExecutorGroup parent, java.util.concurrent.Executor executor)
public DefaultEventExecutor(EventExecutorGroup parent, java.util.concurrent.ThreadFactory threadFactory, int maxPendingTasks, RejectedExecutionHandler rejectedExecutionHandler)
public DefaultEventExecutor(EventExecutorGroup parent, java.util.concurrent.Executor executor, int maxPendingTasks, RejectedExecutionHandler rejectedExecutionHandler)
protected void run()
run
在课堂上
SingleThreadEventExecutor
Copyright © 2008–2018 The Netty Project. All rights reserved.