Package io.netty.channel.kqueue
Class KQueueIoHandler
- java.lang.Object
-
- io.netty.channel.kqueue.KQueueIoHandler
-
- All Implemented Interfaces:
io.netty.channel.IoHandler
public final class KQueueIoHandler extends Object implements io.netty.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 voiddestroy()booleanisCompatible(Class<? extends io.netty.channel.IoHandle> handleType)static io.netty.channel.IoHandlerFactorynewFactory()Returns a newIoHandlerFactorythat createsKQueueIoHandlerinstances.static io.netty.channel.IoHandlerFactorynewFactory(int maxEvents, io.netty.channel.SelectStrategyFactory selectStrategyFactory)Returns a newIoHandlerFactorythat createsKQueueIoHandlerinstances.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 createsKQueueIoHandlerinstances.
-
newFactory
public static io.netty.channel.IoHandlerFactory newFactory(int maxEvents, io.netty.channel.SelectStrategyFactory selectStrategyFactory)Returns a newIoHandlerFactorythat createsKQueueIoHandlerinstances.
-
wakeup
public void wakeup()
- Specified by:
wakeupin interfaceio.netty.channel.IoHandler
-
run
public int run(io.netty.channel.IoHandlerContext context)
- Specified by:
runin 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)
- Specified by:
registerin interfaceio.netty.channel.IoHandler
-
isCompatible
public boolean isCompatible(Class<? extends io.netty.channel.IoHandle> handleType)
- Specified by:
isCompatiblein interfaceio.netty.channel.IoHandler
-
-