GeezerVison is showing netty.io — ThreadPerChannelEventLoopGroup (Netty API Reference (4.1.141.Final))
Class ThreadPerChannelEventLoopGroup
-
Constructor Summary
Constructors
Modifier
Constructor
Description
protected
protected
protected
protected
-
Method Summary
Modifier and Type
Method
Description
boolean
boolean
boolean
boolean
void
Deprecated.
Signals this executor that the caller wants the executor to be shut down.
execute, invokeAll, invokeAll, invokeAny, invokeAny, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownNow, submit, submit, submit
Modifier and Type
Method
Description
void
<T> T
<T> T
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ThreadPerChannelEventLoopGroup
protected ThreadPerChannelEventLoopGroup()
Deprecated.
-
ThreadPerChannelEventLoopGroup
protected ThreadPerChannelEventLoopGroup(int maxChannels)
Deprecated.
- Parameters:
maxChannels - the maximum number of channels to handle with this instance. Once you try to register
a new Channel and the maximum is exceed it will throw an
ChannelException. on the register(Channel) and
register(ChannelPromise) method.
Use 0 to use no limit
-
ThreadPerChannelEventLoopGroup
-
ThreadPerChannelEventLoopGroup
-
Method Details
-
-
-
-
shutdownGracefully
public Future<?> shutdownGracefully(long quietPeriod,
long timeout,
TimeUnit unit)
Deprecated.
Signals this executor that the caller wants the executor to be shut down. Once this method is called,
EventExecutorGroup.isShuttingDown() starts to return true, and the executor prepares to shut itself down.
Unlike EventExecutorGroup.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.
- Specified by:
shutdownGracefully in interface EventExecutorGroup
- Parameters:
quietPeriod - the quiet period as described in the documentation
timeout - the maximum amount of time to wait until the executor is EventExecutorGroup.shutdown()
regardless if a task was submitted during the quiet period
unit - the unit of quietPeriod and timeout
- Returns:
- the
EventExecutorGroup.terminationFuture()
-
-
-
-
-
-
-
-
-
|