GeezerVison is showing netty.io — EventExecutorGroup (Netty API Reference (4.1.141.Final))
Interface EventExecutorGroup
- All Superinterfaces:
Executor, ExecutorService, Iterable<EventExecutor>, ScheduledExecutorService
- All Known Subinterfaces:
EventExecutor, EventLoop, EventLoopGroup, OrderedEventExecutor
- All Known Implementing Classes:
AbstractEventExecutor, AbstractEventExecutorGroup, AbstractEventLoop, AbstractEventLoopGroup, AbstractScheduledEventExecutor, DefaultEventExecutor, DefaultEventExecutorGroup, DefaultEventLoop, DefaultEventLoopGroup, EpollEventLoop, EpollEventLoopGroup, GlobalEventExecutor, ImmediateEventExecutor, KQueueEventLoopGroup, LocalEventLoopGroup, MultithreadEventExecutorGroup, MultithreadEventLoopGroup, NioEventLoop, NioEventLoopGroup, NonStickyEventExecutorGroup, OioEventLoopGroup, SingleThreadEventExecutor, SingleThreadEventLoop, ThreadPerChannelEventLoop, ThreadPerChannelEventLoopGroup, UnorderedThreadPoolEventExecutor
The EventExecutorGroup is responsible for providing the EventExecutor's to use
via its next() method. Besides this, it is also responsible for handling their
life-cycle and allows shutting them down in a global fashion.
-
Method Summary
Modifier and Type
Method
Description
boolean
void
Signals this executor that the caller wants the executor to be shut down.
-
Method Details
-
-
-
shutdownGracefully
Future<?> shutdownGracefully(long quietPeriod,
long timeout,
TimeUnit unit)
Signals this executor that the caller wants the executor to be shut down. Once this method is called,
isShuttingDown() starts to return true, and the executor prepares to shut itself down.
Unlike shutdown(), graceful shutdown ensures that no tasks are submitted for 'the quiet period'
(usually a couple seconds) before it shuts itself down. If a task is submitted during the quiet period,
it is guaranteed to be accepted and the quiet period will start over.
- Parameters:
quietPeriod - the quiet period as described in the documentation
timeout - the maximum amount of time to wait until the executor is shutdown()
regardless if a task was submitted during the quiet period
unit - the unit of quietPeriod and timeout
- Returns:
- the
terminationFuture()
-
-
-
-
-
-
-
-
-
-
-
-
|