Package io.netty.channel.uring
Class IoUringIoHandler
- java.lang.Object
-
- io.netty.channel.uring.IoUringIoHandler
-
- All Implemented Interfaces:
io.netty.channel.IoHandler
public final class IoUringIoHandler extends Object implements io.netty.channel.IoHandler
IoHandlerwhich is implemented in terms of the Linux-specificio_uringAPI.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()voidinitialize()booleanisCompatible(Class<? extends io.netty.channel.IoHandle> handleType)static io.netty.channel.IoHandlerFactorynewFactory()Create a newIoHandlerFactorythat can be used to createIoUringIoHandlers.static io.netty.channel.IoHandlerFactorynewFactory(int ringSize)Create a newIoHandlerFactorythat can be used to createIoUringIoHandlers.static io.netty.channel.IoHandlerFactorynewFactory(IoUringIoHandlerConfig config)Create a newIoHandlerFactorythat can be used to createIoUringIoHandlers.voidprepareToDestroy()io.netty.channel.IoRegistrationregister(io.netty.channel.IoHandle handle)intrun(io.netty.channel.IoHandlerContext context)voidwakeup()
-
-
-
Method Detail
-
initialize
public void initialize()
- Specified by:
initializein 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) throws Exception- Specified by:
registerin interfaceio.netty.channel.IoHandler- Throws:
Exception
-
wakeup
public void wakeup()
- Specified by:
wakeupin interfaceio.netty.channel.IoHandler
-
isCompatible
public boolean isCompatible(Class<? extends io.netty.channel.IoHandle> handleType)
- Specified by:
isCompatiblein interfaceio.netty.channel.IoHandler
-
newFactory
public static io.netty.channel.IoHandlerFactory newFactory()
Create a newIoHandlerFactorythat can be used to createIoUringIoHandlers.- Returns:
- factory
-
newFactory
public static io.netty.channel.IoHandlerFactory newFactory(int ringSize)
Create a newIoHandlerFactorythat can be used to createIoUringIoHandlers. EachIoUringIoHandlerwill use a ring of sizeringSize.- Parameters:
ringSize- the size of the ring.- Returns:
- factory
-
newFactory
public static io.netty.channel.IoHandlerFactory newFactory(IoUringIoHandlerConfig config)
Create a newIoHandlerFactorythat can be used to createIoUringIoHandlers. EachIoUringIoHandlerwill use same option- Parameters:
config- the io_uring configuration- Returns:
- factory
-
-