public final class IoUringIoHandler extends Object implements io.netty.channel.IoHandler
IoHandler which is implemented in terms of the Linux-specific io_uring API.| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
boolean |
isCompatible(Class<? extends io.netty.channel.IoHandle> handleType) |
static io.netty.channel.IoHandlerFactory |
newFactory()
Create a new
IoHandlerFactory that can be used to create IoUringIoHandlers. |
static io.netty.channel.IoHandlerFactory |
newFactory(int ringSize)
Create a new
IoHandlerFactory that can be used to create IoUringIoHandlers. |
void |
prepareToDestroy() |
io.netty.channel.IoRegistration |
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 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 io.netty.channel.IoRegistration register(io.netty.channel.IoEventLoop eventLoop,
io.netty.channel.IoHandle handle)
throws Exception
register in interface io.netty.channel.IoHandlerExceptionpublic void wakeup(io.netty.channel.IoEventLoop eventLoop)
wakeup in interface io.netty.channel.IoHandlerpublic boolean isCompatible(Class<? extends io.netty.channel.IoHandle> handleType)
isCompatible in interface io.netty.channel.IoHandlerpublic static io.netty.channel.IoHandlerFactory newFactory()
IoHandlerFactory that can be used to create IoUringIoHandlers.public static io.netty.channel.IoHandlerFactory newFactory(int ringSize)
IoHandlerFactory that can be used to create IoUringIoHandlers.
Each IoUringIoHandler will use a ring of size ringSize.ringSize - the size of the ring.Copyright © 2008–2024 The Netty Project. All rights reserved.