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.
| Modifier and Type | Method and Description |
|---|---|
| public default boolean | Returns: true if the executor group terminated within the specific timeout.The non-negative maximum amount of time to wait for the executor group to terminate. timeout, TimeUnit The non-null time unit of the timeout. unit)Wait for this |
| public default void | execute(Runnable
the runnable task task)Implements java. |
| public boolean | Returns: true if all executors in this group have shut down and are no longer accepting any new tasks.Returns |
| public boolean | Returns: true if all executors in this group have at least started shutting down, otherwise false.Returns |
| public default boolean | Returns: true if all executors in this group have terminated.Returns |
| public Iterator | |
| public EventExecutor | |
| public default Future | Returns: A future that represents the completion of the scheduled task.The task that should be executed in this task, long EventExecutorGroup after the given delay.A positive time delay, in the given time unit. delay, TimeUnit The non-null time unit for the delay. unit)Schedule the given task for execution after the given delay, in the next available |
| public default < The type of the future result. V> Future | Returns: A future that represents the completion of the scheduled task.The task that should be executed in this task, long EventExecutorGroup after the given delay.A positive time delay, in the given time unit. delay, TimeUnit The non-null time unit for the delay. unit)Schedule the given task for execution after the given delay, in the next available |
| public default Future | Returns: A future that represents the recurring task, and which can be cancelled to stop future executions.The task that should be scheduled to execute at a fixed rate in this task, long EventExecutorGroup.The positive initial delay for the first task execution, in terms of the given time unit. initialDelay, long The positive period for the execution frequency to use after the first execution has started,
in terms of the given time unit. period, TimeUnit The non-null time unit for the delay and period. unit)Schedule the given task for periodic execution in the next available |
| public default Future | Returns: A future that represents the recurring task, and which can be cancelled to stop future executions.The task that should be scheduled to execute with fixed delays in this task, long EventExecutorGroup.The positive initial delay for the first task execution, in terms of the given time unit. initialDelay, long The positive subsequent delay between task, to use after the first execution has completed,
in terms of the given time unit. delay, TimeUnit The non-null time unit for the delays. unit)Schedule the given task for periodic execution in the next available |
| public default Future | Returns: theterminationFuture()Shortcut method for |
| public Future | Returns: theterminationFuture()the quiet period as described in the documentation quietPeriod, long the maximum amount of time to wait until the executor is
shutting down regardless if a task was submitted during the quiet period. timeout, TimeUnit the unit of unit)quietPeriod and timeoutSignals this executor that the caller wants the executor to be shut down. |
| public default Future | Returns: A future that represents the completion of the submitted task.The task that should be executed in this task)EventExecutorGroup.Submit the given task for execution in the next available |
| public default < The type of the future result. T> Future | Returns: A future that represents the completion of the submitted task.The task that should be executed in this task, T EventExecutorGroup.The value that the returned future will complete with, if the task completes successfully. result)Submit the given task for execution in the next available |
| public default < The type of the future result. T> Future | Returns: A future that represents the completion of the submitted task.The task that should be executed in this task)EventExecutorGroup.Submit the given task for execution in the next available |
| public Future | terminationFuture()
Returns the |
| awaitTermination | back to summary |
|---|---|
| public default boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException Wait for this
| |
| execute | back to summary |
|---|---|
| public default void execute(Runnable task) 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 | |
| isShutdown | back to summary |
|---|---|
| public boolean isShutdown() Returns An executor group that "is shut down" might still be executing tasks that it has queued up, but it will no longer be accepting any new tasks. Once all running and queued tasks have completed, the executor group will be terminated.
| |
| isShuttingDown | back to summary |
|---|---|
| public boolean isShuttingDown() Returns An executor group that "is shutting down" can still accept new tasks for a little while (the grace period), but will eventually start rejecting new tasks. At that point, the executor group will be shut down.
| |
| isTerminated | back to summary |
|---|---|
| public default boolean isTerminated() Returns
| |
| iterator | back to summary |
|---|---|
| public Iterator Redeclares java. Doc from java. Returns an iterator over elements of type
| |
| next | back to summary |
|---|---|
| public EventExecutor next() Returns one of the | |
| schedule | back to summary |
|---|---|
| public default Future Schedule the given task for execution after the given delay, in the next available
| |
| schedule | back to summary |
|---|---|
| public default <V> Future Schedule the given task for execution after the given delay, in the next available
| |
| scheduleAtFixedRate | back to summary |
|---|---|
| public default Future Schedule the given task for periodic execution in the next available The task will be executed repeatedly until it either fails with an exception, or its future is cancelled. The future thus will never complete successfully.
| |
| scheduleWithFixedDelay | back to summary |
|---|---|
| public default Future Schedule the given task for periodic execution in the next available
This is in contrast to The task will be executed repeatedly until it either fails with an exception, or its future is cancelled. The future thus will never complete successfully.
| |
| shutdownGracefully | back to summary |
|---|---|
| public default Future Shortcut method for | |
| shutdownGracefully | back to summary |
|---|---|
| public Future Signals this executor that the caller wants the executor to be shut down. Once this method is called,
| |
| submit | back to summary |
|---|---|
| public default Future Submit the given task for execution in the next available
| |
| submit | back to summary |
|---|---|
| public default <T> Future Submit the given task for execution in the next available
| |
| submit | back to summary |
|---|---|
| public default <T> Future Submit the given task for execution in the next available
| |
| terminationFuture | back to summary |
|---|---|
| public Future Returns the
| |