public class EpollEventLoop
extends io.netty.channel.SingleThreadEventLoop
EventLoop which uses epoll under the covers. Only works on Linux!io.netty.channel.SingleThreadEventLoop.ChannelsReadOnlyIterator<T extends io.netty.channel.Channel>| Modifier and Type | Method and Description |
|---|---|
protected boolean |
afterScheduledTaskSubmitted(long deadlineNanos) |
protected boolean |
beforeScheduledTaskSubmitted(long deadlineNanos) |
protected void |
cleanup() |
void |
closeFileDescriptors()
This method is intended for use by process checkpoint/restore
integration, such as OpenJDK CRaC.
|
int |
getIoRatio()
Returns the percentage of the desired amount of time spent for I/O in the event loop.
|
protected Queue<Runnable> |
newTaskQueue(int maxPendingTasks) |
void |
openFileDescriptors()
This method is intended for use by a process checkpoint/restore
integration, such as OpenJDK CRaC.
|
int |
registeredChannels() |
Iterator<io.netty.channel.Channel> |
registeredChannelsIterator() |
protected void |
run() |
void |
setIoRatio(int ioRatio)
Sets the percentage of the desired amount of time spent for I/O in the event loop.
|
protected void |
wakeup(boolean inEventLoop) |
afterRunningAllTasks, executeAfterEventLoopIteration, hasTasks, next, parent, pendingTasks, register, register, registeraddShutdownHook, addTask, awaitTermination, confirmShutdown, deadlineNanos, delayNanos, execute, inEventLoop, interruptThread, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isShuttingDown, isTerminated, lazyExecute, newTaskQueue, peekTask, pollTask, pollTaskFrom, reject, reject, removeShutdownHook, removeTask, runAllTasks, runAllTasks, runAllTasksFrom, runScheduledAndExecutorTasks, shutdown, shutdownGracefully, takeTask, terminationFuture, threadProperties, updateLastExecutionTime, wakesUpForTaskcancelScheduledTasks, deadlineToDelayNanos, getCurrentTimeNanos, hasScheduledTasks, initialNanoTime, nanoTime, nextScheduledTaskDeadlineNanos, nextScheduledTaskNano, pollScheduledTask, pollScheduledTask, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, validateScheduledinEventLoop, iterator, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, newTaskFor, newTaskFor, runTask, safeExecute, shutdownGracefully, shutdownNow, submit, submit, submitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinEventLoop, inEventLoop, newFailedFuture, newProgressivePromise, newPromise, newSucceededFutureisShuttingDown, iterator, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, submit, submit, submit, terminationFutureawaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminatedforEach, spliterator@UnstableApi public void openFileDescriptors()
protected void wakeup(boolean inEventLoop)
wakeup in class io.netty.util.concurrent.SingleThreadEventExecutorprotected boolean beforeScheduledTaskSubmitted(long deadlineNanos)
beforeScheduledTaskSubmitted in class io.netty.util.concurrent.AbstractScheduledEventExecutorprotected boolean afterScheduledTaskSubmitted(long deadlineNanos)
afterScheduledTaskSubmitted in class io.netty.util.concurrent.AbstractScheduledEventExecutorprotected Queue<Runnable> newTaskQueue(int maxPendingTasks)
newTaskQueue in class io.netty.util.concurrent.SingleThreadEventExecutorpublic int getIoRatio()
public void setIoRatio(int ioRatio)
50, which means the event loop will try to spend the same amount of time for I/O as for non-I/O tasks.public int registeredChannels()
registeredChannels in class io.netty.channel.SingleThreadEventLooppublic Iterator<io.netty.channel.Channel> registeredChannelsIterator()
registeredChannelsIterator in class io.netty.channel.SingleThreadEventLoopprotected void run()
run in class io.netty.util.concurrent.SingleThreadEventExecutorprotected void cleanup()
cleanup in class io.netty.util.concurrent.SingleThreadEventExecutor@UnstableApi public void closeFileDescriptors()
Copyright © 2008–2024 The Netty Project. All rights reserved.