SingleThreadIoEventLoop with NioIoHandler@Deprecated public final class NioEventLoop extends SingleThreadIoEventLoop
SingleThreadIoEventLoop implementation which register the Channel's to a
Selector and so does the multi-plexing of these in the event loop.SingleThreadEventLoop.ChannelsReadOnlyIterator<T extends Channel>DEFAULT_MAX_PENDING_TASKS| Modifier and Type | Method and Description |
|---|---|
int |
getIoRatio()
Deprecated.
Always return 0.
|
protected Queue<Runnable> |
newTaskQueue(int maxPendingTasks)
Deprecated.
|
void |
rebuildSelector()
Deprecated.
|
void |
register(SelectableChannel ch,
int interestOps,
NioTask<?> task)
Deprecated.
Registers an arbitrary
SelectableChannel, not necessarily created by Netty, to the Selector
of this event loop. |
int |
registeredChannels()
Deprecated.
|
Iterator<Channel> |
registeredChannelsIterator()
Deprecated.
|
SelectorProvider |
selectorProvider()
Deprecated.
|
void |
setIoRatio(int ioRatio)
Deprecated.
|
canSuspend, cleanup, ioHandler, isCompatible, isIoType, next, register, run, runIo, wakeupafterRunningAllTasks, executeAfterEventLoopIteration, hasTasks, parent, pendingTasks, register, register, registeraddShutdownHook, addTask, awaitTermination, canSuspend, confirmShutdown, deadlineNanos, delayNanos, execute, inEventLoop, interruptThread, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isShuttingDown, isSuspended, isTerminated, lazyExecute, newTaskQueue, peekTask, pollTask, pollTaskFrom, reject, reject, removeShutdownHook, removeTask, runAllTasks, runAllTasks, runAllTasksFrom, runScheduledAndExecutorTasks, shutdown, shutdownGracefully, takeTask, terminationFuture, threadProperties, trySuspend, updateLastExecutionTime, wakesUpForTaskafterScheduledTaskSubmitted, beforeScheduledTaskSubmitted, cancelScheduledTasks, deadlineToDelayNanos, getCurrentTimeNanos, hasScheduledTasks, initialNanoTime, nanoTime, nextScheduledTaskDeadlineNanos, nextScheduledTaskNano, pollScheduledTask, pollScheduledTask, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, validateSchedulediterator, newTaskFor, newTaskFor, runTask, safeExecute, shutdownGracefully, shutdownNow, submit, submit, submitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparent, register, registerinEventLoop, inEventLoop, isSuspended, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, trySuspendisShuttingDown, iterator, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, submit, submit, submit, terminationFutureawaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminatedforEach, spliteratorregisterpublic SelectorProvider selectorProvider()
protected Queue<Runnable> newTaskQueue(int maxPendingTasks)
newTaskQueue in class io.netty.util.concurrent.SingleThreadEventExecutorpublic void register(SelectableChannel ch, int interestOps, NioTask<?> task)
SelectableChannel, not necessarily created by Netty, to the Selector
of this event loop. Once the specified SelectableChannel is registered, the specified task will
be executed by this event loop when the SelectableChannel is ready.public int getIoRatio()
@Deprecated public void setIoRatio(int ioRatio)
public void rebuildSelector()
public int registeredChannels()
SingleThreadEventLoopChannels registered with this EventLoop or -1
if operation is not supported. The returned value is not guaranteed to be exact accurate and
should be viewed as a best effort.registeredChannels in class SingleThreadEventLooppublic Iterator<Channel> registeredChannelsIterator()
registeredChannelsIterator in class SingleThreadEventLoopChannels registered with this EventLoop.
The returned value is not guaranteed to be exact accurate and
should be viewed as a best effort. This method is expected to be called from within
event loop.Copyright © 2008–2025 The Netty Project. All rights reserved.