public interface PausableEventExecutor extends EventExecutor, WrappedEventExecutor
EventExecutor implementation to be able
to reject new work.| Modifier and Type | Method and Description |
|---|---|
void |
acceptNewTasks()
With a call to this method the
EventExecutor signals that it is now accepting new work. |
boolean |
isAcceptingNewTasks()
Returns
true if and only if this EventExecutor is accepting a new task. |
void |
rejectNewTasks()
After a call to this method the
EventExecutor may throw a RejectedExecutionException when
attempting to assign new work to it (i.e. through a call to Executor.execute(Runnable)). |
children, inEventLoop, inEventLoop, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, next, parent, unwrapisShuttingDown, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, submit, submit, submit, terminationFutureawaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminatedclosevoid rejectNewTasks()
EventExecutor may throw a RejectedExecutionException when
attempting to assign new work to it (i.e. through a call to Executor.execute(Runnable)).void acceptNewTasks()
EventExecutor signals that it is now accepting new work.boolean isAcceptingNewTasks()
true if and only if this EventExecutor is accepting a new task.Copyright © 2008–2015 The Netty Project. All rights reserved.