Deprecated
this will be remove in the next-major release.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Set | |
| private final Object[] | |
| private final FutureListener | |
| pack-priv final Executor | |
| pack-priv final Queue | |
| private final int | |
| private volatile boolean | |
| private final Promise | |
| private final ChannelException |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | ThreadPerChannelEventLoopGroup(int
the maximum number of channels to handle with this instance. Once you try to register
a new maxChannels)Channel and the maximum is exceed it will throw an
ChannelException. on the register(Channel) and
register(ChannelPromise) method.
Use 0 to use no limitCreate a new |
| protected | ThreadPerChannelEventLoopGroup(int
the maximum number of channels to handle with this instance. Once you try to register
a new maxChannels, ThreadFactory threadFactory, Object... Channel and the maximum is exceed it will throw an
ChannelException on the register(Channel) and
register(ChannelPromise) method.
Use 0 to use no limitarguments which will passed to each args)newChild(Object. call.Create a new |
| protected | ThreadPerChannelEventLoopGroup(int
the maximum number of channels to handle with this instance. Once you try to register
a new maxChannels, Executor executor, Object... Channel and the maximum is exceed it will throw an
ChannelException on the register(Channel) and
register(ChannelPromise) method.
Use 0 to use no limitarguments which will passed to each args)newChild(Object. call.Create a new |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | awaitTermination(long
the maximum time to wait timeout, TimeUnit the time unit of the timeout argument unit)Implements java. |
| public boolean | isShutdown()
Implements java. true if this executor has been shut down.
|
| public boolean | isShuttingDown()
Implements io. true if and only if all EventExecutors managed by this EventExecutorGroup
are being shut down gracefully or was shut down.
|
| public boolean | isTerminated()
Implements java. true if all tasks have completed following shut down.
|
| public Iterator | iterator()
Implements io. T.
|
| protected EventLoop | |
| public EventLoop | next()
Implements io. EventLoop to use
|
| private EventLoop | |
| public ChannelFuture | register(Channel channel)
Implements io. Channel with this EventLoop.
|
| public ChannelFuture | register(ChannelPromise promise)
Implements io. Channel with this EventLoop using a ChannelFuture.
|
| public ChannelFuture | register(Channel channel, ChannelPromise promise)
Implements io.
Deprecated
Register a Channel with this EventLoop.
|
| public void | shutdown()
Implements abstract io. Implements io.
Deprecated
Initiates an orderly shutdown in which previously submitted
tasks are executed, but no new tasks will be accepted.
|
| public Future | shutdownGracefully(long
the quiet period as described in the documentation quietPeriod, long the maximum amount of time to wait until the executor is shutdown()
regardless if a task was submitted during the quiet period timeout, TimeUnit the unit of unit)quietPeriod and timeoutImplements io. |
| public Future | terminationFuture()
Implements io. Future which is notified when all EventExecutors managed by this
EventExecutorGroup have been terminated.
|
| activeChildren | back to summary |
|---|---|
| pack-priv final Set<EventLoop> activeChildren | |
| childArgs | back to summary |
|---|---|
| private final Object[] childArgs | |
| childTerminationListener | back to summary |
|---|---|
| private final FutureListener<Object> childTerminationListener | |
| executor | back to summary |
|---|---|
| pack-priv final Executor executor | |
| idleChildren | back to summary |
|---|---|
| pack-priv final Queue<EventLoop> idleChildren | |
| maxChannels | back to summary |
|---|---|
| private final int maxChannels | |
| shuttingDown | back to summary |
|---|---|
| private volatile boolean shuttingDown | |
| terminationFuture | back to summary |
|---|---|
| private final Promise<?> terminationFuture | |
| tooManyChannels | back to summary |
|---|---|
| private final ChannelException tooManyChannels | |
| ThreadPerChannelEventLoopGroup | back to summary |
|---|---|
| protected ThreadPerChannelEventLoopGroup() Create a new | |
| ThreadPerChannelEventLoopGroup | back to summary |
|---|---|
| protected ThreadPerChannelEventLoopGroup(int maxChannels) Create a new
| |
| ThreadPerChannelEventLoopGroup | back to summary |
|---|---|
| protected ThreadPerChannelEventLoopGroup(int maxChannels, ThreadFactory threadFactory, Object... args) Create a new
| |
| ThreadPerChannelEventLoopGroup | back to summary |
|---|---|
| protected ThreadPerChannelEventLoopGroup(int maxChannels, Executor executor, Object... args) Create a new
| |
| awaitTermination | back to summary |
|---|---|
| public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException Implements java. Doc from java. Blocks until all tasks have completed execution after a shutdown request, or the timeout occurs, or the current thread is interrupted, whichever happens first.
| |
| isShutdown | back to summary |
|---|---|
| public boolean isShutdown() Implements java. Doc from java. Returns
| |
| isShuttingDown | back to summary |
|---|---|
| public boolean isShuttingDown() Implements io. Doc from io. Returns
| |
| isTerminated | back to summary |
|---|---|
| public boolean isTerminated() Implements java. Doc from java. Returns
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements io. Doc from java. Returns an iterator over elements of type
| |
| newChild | back to summary |
|---|---|
| protected EventLoop newChild(Object... args) throws Exception Creates a new | |
| next | back to summary |
|---|---|
| public EventLoop next() Implements io. Doc from io. Return the next
| |
| nextChild | back to summary |
|---|---|
| private EventLoop nextChild() throws Exception | |
| register | back to summary |
|---|---|
| public ChannelFuture register(Channel channel) Implements io. Doc from io. Register a
| |
| register | back to summary |
|---|---|
| public ChannelFuture register(ChannelPromise promise) Implements io. Doc from io. Register a
| |
| register | back to summary |
|---|---|
| public ChannelFuture register(Channel channel, ChannelPromise promise) Implements io. Doc from io. Deprecated
Register a
| |
| shutdown | back to summary |
|---|---|
| public void shutdown() Implements abstract io. Implements io. Doc from java. Deprecated
Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted. Invocation has no additional effect if already shut down. This method does not wait for previously submitted tasks to
complete execution. Use
| |
| shutdownGracefully | back to summary |
|---|---|
| public Future Implements io. Doc from io. Signals this executor that the caller wants the executor to be shut down. Once this method is called,
| |
| terminationFuture | back to summary |
|---|---|
| public Future Implements io. Doc from io. Returns the
| |