public class EpollIoHandler extends Object implements io.netty.channel.IoHandler
IoHandler which uses epoll under the covers. Only works on Linux!| Modifier and Type | Method and Description |
|---|---|
void |
closeFileDescriptors()
This method is intended for use by process checkpoint/restore
integration, such as OpenJDK CRaC.
|
void |
destroy() |
boolean |
isCompatible(Class<? extends io.netty.channel.IoHandle> handleType) |
static io.netty.channel.IoHandlerFactory |
newFactory()
Returns a new
IoHandlerFactory that creates EpollIoHandler instances. |
static io.netty.channel.IoHandlerFactory |
newFactory(int maxEvents,
io.netty.channel.SelectStrategyFactory selectStrategyFactory)
Returns a new
IoHandlerFactory that creates EpollIoHandler instances. |
void |
openFileDescriptors()
This method is intended for use by a process checkpoint/restore
integration, such as OpenJDK CRaC.
|
void |
prepareToDestroy() |
EpollIoRegistration |
register(io.netty.channel.IoEventLoop eventLoop,
io.netty.channel.IoHandle handle) |
int |
run(io.netty.channel.IoExecutionContext context) |
void |
wakeup(io.netty.channel.IoEventLoop eventLoop) |
public static io.netty.channel.IoHandlerFactory newFactory()
IoHandlerFactory that creates EpollIoHandler instances.public static io.netty.channel.IoHandlerFactory newFactory(int maxEvents,
io.netty.channel.SelectStrategyFactory selectStrategyFactory)
IoHandlerFactory that creates EpollIoHandler instances.@UnstableApi public void openFileDescriptors()
public void wakeup(io.netty.channel.IoEventLoop eventLoop)
wakeup in interface io.netty.channel.IoHandlerpublic void prepareToDestroy()
prepareToDestroy in interface io.netty.channel.IoHandlerpublic void destroy()
destroy in interface io.netty.channel.IoHandlerpublic EpollIoRegistration register(io.netty.channel.IoEventLoop eventLoop, io.netty.channel.IoHandle handle) throws Exception
register in interface io.netty.channel.IoHandlerExceptionpublic boolean isCompatible(Class<? extends io.netty.channel.IoHandle> handleType)
isCompatible in interface io.netty.channel.IoHandlerpublic int run(io.netty.channel.IoExecutionContext context)
run in interface io.netty.channel.IoHandler@UnstableApi public void closeFileDescriptors()
Copyright © 2008–2024 The Netty Project. All rights reserved.