Package io.netty.channel.uring
Class IoUringIoEvent
- java.lang.Object
-
- io.netty.channel.uring.IoUringIoEvent
-
- All Implemented Interfaces:
IoEvent
public final class IoUringIoEvent extends java.lang.Object implements IoEvent
IoEvent
that 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 short
data()
Returns the data that is passed as part ofIoUringIoOps
.java.nio.ByteBuffer
extraCqeData()
Returns the extra data for the CQE.int
flags()
Returns the flags.byte
opcode()
Returns the op code of theIoUringIoOps
.int
res()
Returns the result.java.lang.String
toString()
-
-
-
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 java.nio.ByteBuffer extraCqeData()
Returns the extra data for the CQE. This will only be non-null of the ring was setup withIORING_SETUP_CQE32
. As thisByteBuffer
maps 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
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-