EventExecutor is a special EventExecutorGroup which comes
with some handy methods to see if a Thread is executed in a event loop.
Besides this, it also extends the EventExecutorGroup to allow for a generic
way to access methods.
| Modifier and Type | Method and Description |
|---|---|
| public void | execute(Runnable
the runnable task task)Redeclares as abstract: io. |
| public default boolean | |
| public boolean | inEventLoop(Thread thread)
Return |
| public default Iterator | iterator()
Implements io. T.
|
| public default <V> Future | newFailedFuture(Throwable cause)
Overrides default io. Future which is marked as failed already.
|
| public default <V> Promise | newPromise()
Implements io. Promise.
|
| public default <V> Future | newSucceededFuture(V result)
Overrides default io. Future which is marked as succeeded already.
|
| public default EventExecutor | |
| public Future | schedule(Runnable
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)Redeclares as abstract: io. EventExecutor
in this group, and return a future that produces a null result when the task completes.
|
| public <V> Future | schedule(Callable<V>
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)Redeclares as abstract: io. EventExecutor
in this group, and return a future that will return the result of the callable when the task completes.
|
| public Future | scheduleAtFixedRate(Runnable
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)Redeclares as abstract: io. EventExecutor.
|
| public Future | scheduleWithFixedDelay(Runnable
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)Redeclares as abstract: io. EventExecutor.
|
| public Future | submit(Runnable
The task that should be executed in this task)EventExecutorGroup.Redeclares as abstract: io. EventExecutor in this group,
and return a future that produces a null result when the task completes.
|
| public <T> Future | submit(Runnable
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)Redeclares as abstract: io. EventExecutor in this group,
and return a future that produces the given result when the task completes.
|
| public <T> Future | submit(Callable<T>
The task that should be executed in this task)EventExecutorGroup.Redeclares as abstract: io. EventExecutor in this group,
and return a future that will return the result of the callable when the task completes.
|
| execute | back to summary |
|---|---|
| public void execute(Runnable task) Redeclares as abstract: io. 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 | |
| inEventLoop | back to summary |
|---|---|
| public default boolean inEventLoop() Calls | |
| inEventLoop | back to summary |
|---|---|
| public boolean inEventLoop(Thread thread) Return | |
| iterator | back to summary |
|---|---|
| public default Iterator Implements io. Doc from java. Returns an iterator over elements of type
| |
| newFailedFuture | back to summary |
|---|---|
| public default <V> Future Overrides default io. Create a new | |
| newPromise | back to summary |
|---|---|
| public default <V> Promise Implements io. Return a new | |
| newSucceededFuture | back to summary |
|---|---|
| public default <V> Future Overrides default io. Create a new | |
| next | back to summary |
|---|---|
| public default EventExecutor next() Implements io. Returns a reference to itself.
| |
| schedule | back to summary |
|---|---|
| public Future Redeclares as abstract: io. Doc from io. Schedule the given task for execution after the given delay, in the next available
| |
| schedule | back to summary |
|---|---|
| public <V> Future Redeclares as abstract: io. Doc from io. Schedule the given task for execution after the given delay, in the next available
| |
| scheduleAtFixedRate | back to summary |
|---|---|
| public Future Redeclares as abstract: io. Doc from io. 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 Future Redeclares as abstract: io. Doc from io. 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.
| |
| submit | back to summary |
|---|---|
| public Future Redeclares as abstract: io. Doc from io. Submit the given task for execution in the next available
| |
| submit | back to summary |
|---|---|
| public <T> Future Redeclares as abstract: io. Doc from io. Submit the given task for execution in the next available
| |
| submit | back to summary |
|---|---|
| public <T> Future Redeclares as abstract: io. Doc from io. Submit the given task for execution in the next available
| |