| Modifier and Type | Field and Description |
|---|---|
| pack-priv final EventLoopGroup | |
| pack-priv final FastThreadLocal |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| 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. |
| pack-priv void | |
| public void | execute(Runnable
the runnable task command)Implements java. |
| public EventLoopGroup | |
| public <T> List | invokeAll(Collection<? extends Callable<T>>
the collection of tasks tasks)Implements java. |
| public <T> List | invokeAll(Collection<? extends Callable<T>>
the collection of tasks tasks, long the maximum time to wait timeout, TimeUnit the time unit of the timeout argument unit)Implements java. |
| public <T> T | invokeAny(Collection<? extends Callable<T>>
the collection of tasks tasks)Implements java. |
| public <T> T | invokeAny(Collection<? extends Callable<T>>
the collection of tasks tasks, 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.
|
| public EventLoop | |
| pack-priv EventLoop | |
| public ChannelFuture | register(Channel channel)
Implements io. Channel with this EventLoop.
|
| public ChannelFuture | register(Channel channel, ChannelPromise promise)
Implements io.
Deprecated
Register a Channel with this EventLoop.
|
| public ChannelFuture | register(ChannelPromise promise)
Implements io. Channel with this EventLoop using a ChannelFuture.
|
| public <V> ScheduledFuture | schedule(Callable<V>
the function to execute callable, long the time from now to delay execution delay, TimeUnit the time unit of the delay parameter unit)Implements io. |
| public ScheduledFuture | schedule(Runnable
the task to execute command, long the time from now to delay execution delay, TimeUnit the time unit of the delay parameter unit)Implements io. |
| public ScheduledFuture | scheduleAtFixedRate(Runnable
the task to execute command, long the time to delay first execution initialDelay, long the period between successive executions period, TimeUnit the time unit of the initialDelay and period parameters unit)Implements io. initialDelay, then initialDelay + period, then
initialDelay + 2 * period, and so on.
|
| public ScheduledFuture | scheduleWithFixedDelay(Runnable
the task to execute command, long the time to delay first execution initialDelay, long the delay between the termination of one
execution and the commencement of the next delay, TimeUnit the time unit of the initialDelay and delay parameters unit)Implements io. |
| public void | shutdown()
Implements io.
Deprecated
Initiates an orderly shutdown in which previously submitted
tasks are executed, but no new tasks will be accepted.
|
| public Future | shutdownGracefully()
Implements io. shutdownGracefully(long, long, TimeUnit) with sensible default values.
|
| 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 List | shutdownNow()
Implements io.
Deprecated
Attempts to stop all actively executing tasks, halts the
processing of waiting tasks, and returns a list of the tasks
that were awaiting execution.
|
| public <T> Future | submit(Callable<T>
the task to submit task)Implements io. |
| public Future | submit(Runnable
the task to submit task)Implements io. |
| public <T> Future | submit(Runnable
the task to submit task, T the result to return result)Implements io. |
| public Future | terminationFuture()
Implements io. Future which is notified when all EventExecutors managed by this
EventExecutorGroup have been terminated.
|
| eventLoopGroup | back to summary |
|---|---|
| pack-priv final EventLoopGroup eventLoopGroup | |
| localLoop | back to summary |
|---|---|
| pack-priv final FastThreadLocal<EventLoop> localLoop | |
| ColocatedEventLoopGroup | back to summary |
|---|---|
pack-priv ColocatedEventLoopGroup(EventLoopGroup eventLoopGroup)
| |
| 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.
| |
| clean | back to summary |
|---|---|
| pack-priv void clean() | |
| execute | back to summary |
|---|---|
| public void execute(Runnable command) Implements java. Doc from java. Executes the given command at some time in the future. The command
may execute in a new thread, in a pooled thread, or in the calling
thread, at the discretion of the | |
| get | back to summary |
|---|---|
| public EventLoopGroup get() Implements java. Doc from java. Gets a result.
| |
| invokeAll | back to summary |
|---|---|
| public <T> List Implements java. Doc from java. Executes the given tasks, returning a list of Futures holding
their status and results when all complete.
| |
| invokeAll | back to summary |
|---|---|
| public <T> List Implements java. Doc from java. Executes the given tasks, returning a list of Futures holding
their status and results
when all complete or the timeout expires, whichever happens first.
| |
| invokeAny | back to summary |
|---|---|
| public <T> T invokeAny(Collection<? extends Callable<T>> tasks) throws InterruptedException, ExecutionException Implements java. Doc from java. Executes the given tasks, returning the result of one that has completed successfully (i.e., without throwing an exception), if any do. Upon normal or exceptional return, tasks that have not completed are cancelled. The results of this method are undefined if the given collection is modified while this operation is in progress.
| |
| invokeAny | back to summary |
|---|---|
| public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException Implements java. Doc from java. Executes the given tasks, returning the result of one that has completed successfully (i.e., without throwing an exception), if any do before the given timeout elapses. Upon normal or exceptional return, tasks that have not completed are cancelled. The results of this method are undefined if the given collection is modified while this operation is in progress.
| |
| 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
| |
| next | back to summary |
|---|---|
| public EventLoop next() Implements io. Doc from io. Return the next
| |
| nextInternal | back to summary |
|---|---|
pack-priv EventLoop nextInternal()
| |
| register | back to summary |
|---|---|
| public ChannelFuture register(Channel channel) 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
| |
| register | back to summary |
|---|---|
| public ChannelFuture register(ChannelPromise promise) Implements io. Doc from io. Register a
| |
| schedule | back to summary |
|---|---|
| public <V> ScheduledFuture Implements io. Doc from java. Submits a value-returning one-shot task that becomes enabled after the given delay.
| |
| schedule | back to summary |
|---|---|
| public ScheduledFuture Implements io. Doc from java. Submits a one-shot task that becomes enabled after the given delay.
| |
| scheduleAtFixedRate | back to summary |
|---|---|
| public ScheduledFuture Implements io. Doc from java. Submits a periodic action that becomes enabled first after the
given initial delay, and subsequently with the given period;
that is, executions will commence after
The sequence of task executions continues indefinitely until one of the following exceptional completions occur:
isDone() on the returned future will
return true.
If any execution of this task takes longer than its period, then subsequent executions may start late, but will not concurrently execute.
| |
| scheduleWithFixedDelay | back to summary |
|---|---|
| public ScheduledFuture Implements io. Doc from java. Submits a periodic action that becomes enabled first after the given initial delay, and subsequently with the given delay between the termination of one execution and the commencement of the next. The sequence of task executions continues indefinitely until one of the following exceptional completions occur:
isDone() on the returned future will
return true.
| |
| shutdown | back to summary |
|---|---|
| public void shutdown() 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. Shortcut method for
| |
| 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,
| |
| shutdownNow | back to summary |
|---|---|
| public List Implements io. Doc from java. Deprecated
Attempts to stop all actively executing tasks, halts the processing of waiting tasks, and returns a list of the tasks that were awaiting execution. This method does not wait for actively executing tasks to
terminate. Use There are no guarantees beyond best-effort attempts to stop
processing actively executing tasks. For example, typical
implementations will cancel via | |
| submit | back to summary |
|---|---|
| public <T> Future Implements io. Doc from java. Submits a value-returning task for execution and returns a
Future representing the pending results of the task. The
Future's
If you would like to immediately block waiting
for a task, you can use constructions of the form
Note The | |
| submit | back to summary |
|---|---|
| public Future Implements io. Doc from java. Submits a Runnable task for execution and returns a Future
representing that task. The Future's | |
| submit | back to summary |
|---|---|
| public <T> Future Implements io. Doc from java. Submits a Runnable task for execution and returns a Future
representing that task. The Future's | |
| terminationFuture | back to summary |
|---|---|
| public Future Implements io. Doc from io. Returns the
| |