Package io.netty.channel.epoll
Class EpollIoHandler
- java.lang.Object
-
- io.netty.channel.epoll.EpollIoHandler
-
- All Implemented Interfaces:
io.netty.channel.IoHandler
public class EpollIoHandler extends Object implements io.netty.channel.IoHandler
IoHandlerwhich uses epoll under the covers. Only works on Linux!
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseFileDescriptors()This method is intended for use by process checkpoint/restore integration, such as OpenJDK CRaC.voiddestroy()booleanisCompatible(Class<? extends io.netty.channel.IoHandle> handleType)static io.netty.channel.IoHandlerFactorynewFactory()Returns a newIoHandlerFactorythat createsEpollIoHandlerinstances.static io.netty.channel.IoHandlerFactorynewFactory(int maxEvents, io.netty.channel.SelectStrategyFactory selectStrategyFactory)Returns a newIoHandlerFactorythat createsEpollIoHandlerinstances.voidopenFileDescriptors()This method is intended for use by a process checkpoint/restore integration, such as OpenJDK CRaC.voidprepareToDestroy()io.netty.channel.IoRegistrationregister(io.netty.channel.IoHandle handle)intrun(io.netty.channel.IoHandlerContext context)voidwakeup()
-
-
-
Method Detail
-
newFactory
public static io.netty.channel.IoHandlerFactory newFactory()
Returns a newIoHandlerFactorythat createsEpollIoHandlerinstances.
-
newFactory
public static io.netty.channel.IoHandlerFactory newFactory(int maxEvents, io.netty.channel.SelectStrategyFactory selectStrategyFactory)Returns a newIoHandlerFactorythat createsEpollIoHandlerinstances.
-
openFileDescriptors
@UnstableApi public void openFileDescriptors()
This method is intended for use by a process checkpoint/restore integration, such as OpenJDK CRaC.
-
wakeup
public void wakeup()
- Specified by:
wakeupin interfaceio.netty.channel.IoHandler
-
prepareToDestroy
public void prepareToDestroy()
- Specified by:
prepareToDestroyin interfaceio.netty.channel.IoHandler
-
destroy
public void destroy()
- Specified by:
destroyin interfaceio.netty.channel.IoHandler
-
register
public io.netty.channel.IoRegistration register(io.netty.channel.IoHandle handle) throws Exception- Specified by:
registerin interfaceio.netty.channel.IoHandler- Throws:
Exception
-
isCompatible
public boolean isCompatible(Class<? extends io.netty.channel.IoHandle> handleType)
- Specified by:
isCompatiblein interfaceio.netty.channel.IoHandler
-
run
public int run(io.netty.channel.IoHandlerContext context)
- Specified by:
runin interfaceio.netty.channel.IoHandler
-
closeFileDescriptors
@UnstableApi public void closeFileDescriptors()
This method is intended for use by process checkpoint/restore integration, such as OpenJDK CRaC. It's up to the caller to ensure that there is no concurrent use of the FDs while these are closed, e.g. by blocking the executor.
-
-