| Modifier and Type | Field and Description |
|---|---|
| private long | frozenTimestamp
When time is frozen, the timestamp returned by |
| pack-priv boolean | |
| private long | |
| private final Queue | |
| private boolean | timeFrozen
Whether time is currently frozen. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public boolean | awaitTermination(long
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)Overrides default io. EventExecutorGroup to terminate, up to the given timeout.
|
| pack-priv void | |
| private static EmbeddedChannel | |
| public Future | deregisterForIo(IoHandle
the handle)IoHandle to deregister.Implements io. Channel from the EventLoop for I/O processing.
|
| private void | |
| public void | execute(Runnable
the runnable task task)Overrides default io. Implements io. |
| pack-priv void | |
| protected long | getCurrentTimeNanos()
Overrides io. |
| pack-priv boolean | |
| public boolean | inEventLoop(Thread thread)
Implements io. true if the given Thread is executed in the event loop,
false otherwise.
|
| public boolean | isCompatible(Class<? extends IoHandle>
the type of the handleType)IoHandle.Implements io. true if the given type is compatible with this EventLoopGroup and so can be registered
to the contained EventLoops, false otherwise.
|
| public boolean | isShutdown()
Implements io. true if all EventExecutors managed by this EventExecutorGroup have been
shut down gracefully and moved past the grace period so that they are no
longer accepting any new tasks.
|
| 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()
Overrides default io. true if all EventExecutors managed by this EventExecutorGroup are
shut down, and all of their tasks have completed.
|
| public EventLoop | next()
Overrides default io. EventLoop to use
|
| pack-priv long | |
| public Future | registerForIo(IoHandle
the handle)IoHandle to register.Implements io. IoHandle to the EventLoop for I/O processing.
|
| private void | |
| pack-priv long | |
| pack-priv void | |
| 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
shutting down 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.
|
| pack-priv void |
| frozenTimestamp | back to summary |
|---|---|
| private long frozenTimestamp When time is frozen, the timestamp returned by | |
| running | back to summary |
|---|---|
| pack-priv boolean running | |
| startTime | back to summary |
|---|---|
| private long startTime | |
| tasks | back to summary |
|---|---|
| private final Queue<Runnable> tasks | |
| timeFrozen | back to summary |
|---|---|
| private boolean timeFrozen Whether time is currently frozen. | |
| EmbeddedEventLoop | back to summary |
|---|---|
| pack-priv EmbeddedEventLoop() | |
| advanceTimeBy | back to summary |
|---|---|
| pack-priv void advanceTimeBy(long nanos) | |
| awaitTermination | back to summary |
|---|---|
| public boolean awaitTermination(long timeout, TimeUnit unit) Overrides default io. Doc from io. Wait for this | |
| cancelScheduled | back to summary |
|---|---|
| pack-priv void cancelScheduled() | |
| cast | back to summary |
|---|---|
| private static EmbeddedChannel cast(IoHandle handle) | |
| deregisterForIo | back to summary |
|---|---|
| public Future Implements io. Doc from io. Deregister the | |
| deregisterForIO0 | back to summary |
|---|---|
| private void deregisterForIO0(Channel channel, Promise<Void> promise) | |
| execute | back to summary |
|---|---|
| public void execute(Runnable task) Overrides default io. Implements 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 | |
| freezeTime | back to summary |
|---|---|
| pack-priv void freezeTime() | |
| getCurrentTimeNanos | back to summary |
|---|---|
| protected long getCurrentTimeNanos() Overrides io. Doc from io. Get the current time in nanoseconds by this executor's clock. This is not the same as
| |
| hasPendingNormalTasks | back to summary |
|---|---|
| pack-priv boolean hasPendingNormalTasks() | |
| inEventLoop | back to summary |
|---|---|
| public boolean inEventLoop(Thread thread) Implements io. Doc from io. Return
| |
| isCompatible | back to summary |
|---|---|
| public boolean isCompatible(Class<? extends IoHandle> handleType) Implements io. Doc from io. Returns | |
| isShutdown | back to summary |
|---|---|
| public boolean isShutdown() Implements io. Doc from io. 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() Implements io. Doc from io. 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 boolean isTerminated() Overrides default io. Doc from io. Returns
| |
| next | back to summary |
|---|---|
| public EventLoop next() Overrides default io. Doc from io. Return the next
| |
| nextScheduledTask | back to summary |
|---|---|
| pack-priv long nextScheduledTask() | |
| registerForIo | back to summary |
|---|---|
| public Future Implements io. | |
| registerForIO0 | back to summary |
|---|---|
| private void registerForIO0(EmbeddedChannel channel, Promise<Void> promise) | |
| runScheduledTasks | back to summary |
|---|---|
| pack-priv long runScheduledTasks() | |
| runTasks | back to summary |
|---|---|
| pack-priv void runTasks() | |
| 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
| |
| unfreezeTime | back to summary |
|---|---|
| pack-priv void unfreezeTime() | |