public final class KQueueIoHandler extends Object implements io.netty.channel.IoHandler
IoHandler which uses kqueue under the covers. Only works on BSD!| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
boolean |
isCompatible(Class<? extends io.netty.channel.IoHandle> handleType) |
static io.netty.channel.IoHandlerFactory |
newFactory()
Returns a new
IoHandlerFactory that creates KQueueIoHandler instances. |
static io.netty.channel.IoHandlerFactory |
newFactory(int maxEvents,
io.netty.channel.SelectStrategyFactory selectStrategyFactory)
Returns a new
IoHandlerFactory that creates KQueueIoHandler instances. |
void |
prepareToDestroy() |
KQueueIoRegistration |
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 KQueueIoHandler instances.public static io.netty.channel.IoHandlerFactory newFactory(int maxEvents,
io.netty.channel.SelectStrategyFactory selectStrategyFactory)
IoHandlerFactory that creates KQueueIoHandler instances.public void wakeup(io.netty.channel.IoEventLoop eventLoop)
wakeup in interface io.netty.channel.IoHandlerpublic int run(io.netty.channel.IoExecutionContext context)
run in interface io.netty.channel.IoHandlerpublic void prepareToDestroy()
prepareToDestroy in interface io.netty.channel.IoHandlerpublic void destroy()
destroy in interface io.netty.channel.IoHandlerpublic KQueueIoRegistration register(io.netty.channel.IoEventLoop eventLoop, io.netty.channel.IoHandle handle)
register in interface io.netty.channel.IoHandlerpublic boolean isCompatible(Class<? extends io.netty.channel.IoHandle> handleType)
isCompatible in interface io.netty.channel.IoHandlerCopyright © 2008–2024 The Netty Project. All rights reserved.