Package io.netty.channel.uring
Class IoUringIoEvent
- java.lang.Object
-
- io.netty.channel.uring.IoUringIoEvent
-
- All Implemented Interfaces:
io.netty.channel.IoEvent
public final class IoUringIoEvent extends Object implements io.netty.channel.IoEvent
IoEventthat will be produced as an result of aIoUringIoOps.
-
-
Constructor Summary
Constructors Constructor Description IoUringIoEvent(int res, int flags, byte opcode, short data)Create a new instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description shortdata()Returns the data that is passed as part ofIoUringIoOps.ByteBufferextraCqeData()Returns the extra data for the CQE.intflags()Returns the flags.byteopcode()Returns the op code of theIoUringIoOps.intres()Returns the result.StringtoString()
-
-
-
Method Detail
-
res
public int res()
Returns the result.- Returns:
- the result
-
flags
public int flags()
Returns the flags.- Returns:
- flags
-
opcode
public byte opcode()
Returns the op code of theIoUringIoOps.- Returns:
- opcode
-
data
public short data()
Returns the data that is passed as part ofIoUringIoOps.- Returns:
- data.
-
extraCqeData
public ByteBuffer extraCqeData()
Returns the extra data for the CQE. This will only be non-null of the ring was setup withIORING_SETUP_CQE32. As thisByteBuffermaps into the shared completion queue its important to not hold any reference to it outside of theIoHandle.handle(IoRegistration, IoEvent)method.- Returns:
- extra data for the CQE or
null.
-
-