EventLoops that execute all its submitted tasks in a single thread.
| Modifier and Type | Class and Description |
|---|---|
| protected static class |
| Modifier and Type | Field and Description |
|---|---|
| protected static final int | |
| private final Queue |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| protected | SingleThreadEventLoop(EventLoopGroup parent, ThreadFactory threadFactory, boolean addTaskWakesUp, int maxPendingTasks, RejectedExecutionHandler rejectedExecutionHandler)
|
| protected | SingleThreadEventLoop(EventLoopGroup parent, Executor executor, boolean addTaskWakesUp, int maxPendingTasks, RejectedExecutionHandler rejectedExecutionHandler)
|
| protected | SingleThreadEventLoop(EventLoopGroup parent, Executor executor, boolean addTaskWakesUp, Queue<Runnable> taskQueue, Queue<Runnable> tailTaskQueue, RejectedExecutionHandler rejectedExecutionHandler)
|
| DEFAULT_MAX_PENDING_TASKS | back to summary |
|---|---|
| protected static final int DEFAULT_MAX_PENDING_TASKS | |
| tailTasks | back to summary |
|---|---|
| private final Queue<Runnable> tailTasks | |
| SingleThreadEventLoop | back to summary |
|---|---|
| protected SingleThreadEventLoop(EventLoopGroup parent, ThreadFactory threadFactory, boolean addTaskWakesUp) | |
| SingleThreadEventLoop | back to summary |
|---|---|
| protected SingleThreadEventLoop(EventLoopGroup parent, Executor executor, boolean addTaskWakesUp) | |
| SingleThreadEventLoop | back to summary |
|---|---|
| protected SingleThreadEventLoop(EventLoopGroup parent, ThreadFactory threadFactory, boolean addTaskWakesUp, int maxPendingTasks, RejectedExecutionHandler rejectedExecutionHandler) | |
| SingleThreadEventLoop | back to summary |
|---|---|
| protected SingleThreadEventLoop(EventLoopGroup parent, Executor executor, boolean addTaskWakesUp, int maxPendingTasks, RejectedExecutionHandler rejectedExecutionHandler) | |
| SingleThreadEventLoop | back to summary |
|---|---|
| protected SingleThreadEventLoop(EventLoopGroup parent, Executor executor, boolean addTaskWakesUp, Queue<Runnable> taskQueue, Queue<Runnable> tailTaskQueue, RejectedExecutionHandler rejectedExecutionHandler) | |
| afterRunningAllTasks | back to summary |
|---|---|
| protected void afterRunningAllTasks() Overrides io. Doc from io. Invoked before returning from
| |
| executeAfterEventLoopIteration | back to summary |
|---|---|
| public final void executeAfterEventLoopIteration(Runnable task) Adds a task to be run once at the end of next (or current)
| |
| hasTasks | back to summary |
|---|---|
| protected boolean hasTasks() Overrides io.
| |
| next | back to summary |
|---|---|
| public EventLoop next() Overrides io. Implements io. Doc from io. Return the next
| |
| parent | back to summary |
|---|---|
| public EventLoopGroup parent() Overrides io. Implements io. Doc from io. Return the
| |
| pendingTasks | back to summary |
|---|---|
| public int pendingTasks() Overrides io. Doc from io. Return the number of tasks that are pending for processing.
| |
| register | back to summary |
|---|---|
| public ChannelFuture register(Channel channel) Implements io. Doc from io. Register a
| |
| register | back to summary |
|---|---|
| public ChannelFuture register(final ChannelPromise promise) Implements io. Doc from io. Register a
| |
| register | back to summary |
|---|---|
| public ChannelFuture register(final Channel channel, final ChannelPromise promise) Implements io. Doc from io. Deprecated
Register a
| |
| registeredChannels | back to summary |
|---|---|
| public int registeredChannels() Returns the number of
| |
| registeredChannelsIterator | back to summary |
|---|---|
public Iterator
| |
| removeAfterEventLoopIterationTask | back to summary |
|---|---|
| pack-priv final boolean removeAfterEventLoopIterationTask(Runnable task) Removes a task that was added previously via
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Iterator | |
| private static final Iterator |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static <T> Iterator | |
| public boolean | |
| public Channel | |
| public void | remove()
Overrides default java. |
| channelIterator | back to summary |
|---|---|
| private final Iterator<T> channelIterator | |
| EMPTY | back to summary |
|---|---|
| private static final Iterator<Object> EMPTY | |
| ChannelsReadOnlyIterator | back to summary |
|---|---|
| public ChannelsReadOnlyIterator(Iterable<T> channelIterable) | |
| empty | back to summary |
|---|---|
public static <T> Iterator
| |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public Channel next() Implements java. Doc from java. Returns the next element in the iteration. | |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |