Class IoUringIoEvent
java.lang.Object
io.netty.channel.uring.IoUringIoEvent
- All Implemented Interfaces:
IoEvent
IoEvent that will be produced as an result of a IoUringIoOps.-
Constructor Summary
ConstructorsConstructorDescriptionIoUringIoEvent(int res, int flags, byte opcode, short data) Create a new instance -
Method Summary
Modifier and TypeMethodDescriptionshortdata()Returns the data that is passed as part ofIoUringIoOps.Returns the extra data for the CQE.intflags()Returns the flags.byteopcode()Returns the op code of theIoUringIoOps.intres()Returns the result.toString()
-
Constructor Details
-
IoUringIoEvent
public IoUringIoEvent(int res, int flags, byte opcode, short data) Create a new instance- Parameters:
res- the result.flags- the flagsopcode- the op codedata- the user data that was given as part of the submission.
-
-
Method Details
-
res
public int res()Returns the result.- Returns:
- the result
-
flags
public int flags()Returns the flags.- Returns:
- flags
-
opcode
-
data
-
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.
-
toString
-