EventExecutor implementations.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final long | |
| pack-priv static final long | |
| private static final InternalLogger | |
| private final Future |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static <V> RunnableFuture | newRunnableFuture(Promise<V> promise, Callable<V> task)
Returns a new |
| private static <V> RunnableFuture | newRunnableFuture(Promise<V> promise, Runnable task, V value)
Returns a new |
| public <V> Future | newSucceededFuture(V result)
Overrides default io. Future which is marked as succeeded already.
|
| protected < The type of the result value. T> RunnableFuture | newTaskFor(Runnable
The task to be decorated. runnable, T The value that the returned future will complete with, assuming the given value)Runnable doesn't
throw an exception.Decorate the given |
| protected < The type of the result value. T> RunnableFuture | newTaskFor(Callable<T>
The task to be decorated. callable)Decorate the given |
| pack-priv static void | |
| public final Future | submit(Runnable
The task that should be executed in this task)EventExecutorGroup.Implements io. EventExecutor in this group,
and return a future that produces a null result when the task completes.
|
| public final <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)Implements io. EventExecutor in this group,
and return a future that produces the given result when the task completes.
|
| public final <T> Future | submit(Callable<T>
The task that should be executed in this task)EventExecutorGroup.Implements io. EventExecutor in this group,
and return a future that will return the result of the callable when the task completes.
|
| DEFAULT_SHUTDOWN_QUIET_PERIOD | back to summary |
|---|---|
| pack-priv static final long DEFAULT_SHUTDOWN_QUIET_PERIOD | |
| DEFAULT_SHUTDOWN_TIMEOUT | back to summary |
|---|---|
| pack-priv static final long DEFAULT_SHUTDOWN_TIMEOUT | |
| logger | back to summary |
|---|---|
| private static final InternalLogger logger | |
| successfulVoidFuture | back to summary |
|---|---|
| private final Future<?> successfulVoidFuture | |
| AbstractEventExecutor | back to summary |
|---|---|
| public AbstractEventExecutor() | |
| newRunnableFuture | back to summary |
|---|---|
| private static <V> RunnableFuture Returns a new | |
| newRunnableFuture | back to summary |
|---|---|
| private static <V> RunnableFuture Returns a new | |
| newSucceededFuture | back to summary |
|---|---|
| public <V> Future Overrides default io. Doc from io. Create a new
| |
| newTaskFor | back to summary |
|---|---|
| protected <T> RunnableFuture Decorate the given
The returned This method can be overridden by sub-classes to hook into the life cycle of the given task.
| |
| newTaskFor | back to summary |
|---|---|
| protected <T> RunnableFuture Decorate the given
The returned This method can be overridden by sub-classes to hook into the life cycle of the given task.
| |
| safeExecute | back to summary |
|---|---|
| pack-priv static void safeExecute(Runnable task) Try to execute the given | |
| submit | back to summary |
|---|---|
| public final Future Implements io. Doc from io. Submit the given task for execution in the next available
| |
| submit | back to summary |
|---|---|
| public final <T> Future Implements io. Doc from io. Submit the given task for execution in the next available
| |
| submit | back to summary |
|---|---|
| public final <T> Future Implements io. Doc from io. Submit the given task for execution in the next available
| |