Package io.netty5.channel.epoll
Class EpollHandler
- java.lang.Object
-
- io.netty5.channel.epoll.EpollHandler
-
- All Implemented Interfaces:
io.netty5.channel.IoHandler
public class EpollHandler extends Object implements io.netty5.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 voidderegister(io.netty5.channel.IoHandle handle)voiddestroy()booleanisCompatible(Class<? extends io.netty5.channel.IoHandle> handleType)static io.netty5.channel.IoHandlerFactorynewFactory()Returns a newIoHandlerFactorythat createsEpollHandlerinstances.static io.netty5.channel.IoHandlerFactorynewFactory(int maxEvents, io.netty5.channel.SelectStrategyFactory selectStrategyFactory)Returns a newIoHandlerFactorythat createsEpollHandlerinstances.voidprepareToDestroy()voidregister(io.netty5.channel.IoHandle handle)intrun(io.netty5.channel.IoExecutionContext context)voidwakeup(boolean inEventLoop)
-
-
-
Method Detail
-
newFactory
public static io.netty5.channel.IoHandlerFactory newFactory()
Returns a newIoHandlerFactorythat createsEpollHandlerinstances.
-
newFactory
public static io.netty5.channel.IoHandlerFactory newFactory(int maxEvents, io.netty5.channel.SelectStrategyFactory selectStrategyFactory)Returns a newIoHandlerFactorythat createsEpollHandlerinstances.
-
register
public final void register(io.netty5.channel.IoHandle handle) throws Exception- Specified by:
registerin interfaceio.netty5.channel.IoHandler- Throws:
Exception
-
deregister
public final void deregister(io.netty5.channel.IoHandle handle) throws Exception- Specified by:
deregisterin interfaceio.netty5.channel.IoHandler- Throws:
Exception
-
wakeup
public final void wakeup(boolean inEventLoop)
- Specified by:
wakeupin interfaceio.netty5.channel.IoHandler
-
run
public final int run(io.netty5.channel.IoExecutionContext context)
- Specified by:
runin interfaceio.netty5.channel.IoHandler
-
prepareToDestroy
public void prepareToDestroy()
- Specified by:
prepareToDestroyin interfaceio.netty5.channel.IoHandler
-
destroy
public final void destroy()
- Specified by:
destroyin interfaceio.netty5.channel.IoHandler
-
isCompatible
public boolean isCompatible(Class<? extends io.netty5.channel.IoHandle> handleType)
- Specified by:
isCompatiblein interfaceio.netty5.channel.IoHandler
-
-