- java.lang.Object
-
- io.netty5.channel.kqueue.KQueueHandler
-
- All Implemented Interfaces:
io.netty5.channel.IoHandler
@UnstableApi public final class KQueueHandler extends Object implements io.netty5.channel.IoHandler
IoHandlerwhich uses kqueue under the covers. Only works on BSD!
-
-
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 createsKQueueHandlerinstances.static io.netty5.channel.IoHandlerFactorynewFactory(int maxEvents, io.netty5.channel.SelectStrategyFactory selectStrategyFactory)Returns a newIoHandlerFactorythat createsKQueueHandlerinstances.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 createsKQueueHandlerinstances.
-
newFactory
public static io.netty5.channel.IoHandlerFactory newFactory(int maxEvents, io.netty5.channel.SelectStrategyFactory selectStrategyFactory)Returns a newIoHandlerFactorythat createsKQueueHandlerinstances.
-
register
public void register(io.netty5.channel.IoHandle handle)
- Specified by:
registerin interfaceio.netty5.channel.IoHandler
-
deregister
public void deregister(io.netty5.channel.IoHandle handle) throws Exception- Specified by:
deregisterin interfaceio.netty5.channel.IoHandler- Throws:
Exception
-
wakeup
public void wakeup(boolean inEventLoop)
- Specified by:
wakeupin interfaceio.netty5.channel.IoHandler
-
run
public int run(io.netty5.channel.IoExecutionContext context)
- Specified by:
runin interfaceio.netty5.channel.IoHandler
-
destroy
public void destroy()
- Specified by:
destroyin interfaceio.netty5.channel.IoHandler
-
prepareToDestroy
public void prepareToDestroy()
- Specified by:
prepareToDestroyin interfaceio.netty5.channel.IoHandler
-
isCompatible
public boolean isCompatible(Class<? extends io.netty5.channel.IoHandle> handleType)
- Specified by:
isCompatiblein interfaceio.netty5.channel.IoHandler
-
-