public final class DefaultEventExecutor extends SingleThreadEventExecutor
SingleThreadEventExecutor
implementation which just execute all submitted task in a
serial fashion.SingleThreadEventExecutor.NonWakeupRunnable
AbstractEventExecutor.LazyRunnable
构造器和说明 |
---|
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) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
run()
Run the tasks in the
SingleThreadEventExecutor.taskQueue |
addShutdownHook, addTask, afterRunningAllTasks, awaitTermination, cleanup, confirmShutdown, deadlineNanos, delayNanos, execute, hasTasks, inEventLoop, interruptThread, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isShuttingDown, isTerminated, lazyExecute, newTaskQueue, newTaskQueue, peekTask, pendingTasks, pollTask, pollTaskFrom, reject, reject, removeShutdownHook, removeTask, runAllTasks, runAllTasks, runAllTasksFrom, runScheduledAndExecutorTasks, shutdown, shutdownGracefully, takeTask, terminationFuture, threadProperties, updateLastExecutionTime, wakesUpForTask, wakeup
afterScheduledTaskSubmitted, beforeScheduledTaskSubmitted, cancelScheduledTasks, deadlineToDelayNanos, getCurrentTimeNanos, hasScheduledTasks, initialNanoTime, nanoTime, nextScheduledTaskDeadlineNanos, nextScheduledTaskNano, pollScheduledTask, pollScheduledTask, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, validateScheduled
inEventLoop, iterator, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, newTaskFor, newTaskFor, next, parent, runTask, 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()
SingleThreadEventExecutor
SingleThreadEventExecutor.taskQueue
run
在类中 SingleThreadEventExecutor