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.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ByteBufferprivate intprivate byteprivate intprivate long -
Constructor Summary
ConstructorsConstructorDescriptionIoUringIoEvent(int res, int flags, byte opcode, long userData) Create a new instanceIoUringIoEvent(int res, int flags, byte opcode, short data) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionshortdata()Deprecated.useuserData()instead.Returns the extra data for the CQE.intflags()Returns the flags.byteopcode()Returns the op code of theIoUringIoOps.intres()Returns the result.toString()(package private) voidupdate(int res, int flags, byte opcode, long userData, ByteBuffer extraCqeData) longuserData()Returns the user data that was passed as part of the submission.
-
Field Details
-
opcode
private byte opcode -
res
private int res -
flags
private int flags -
userData
private long userData -
extraCqeData
-
-
Constructor Details
-
IoUringIoEvent
Deprecated.useIoUringIoEvent(int,int,byte,long)instead.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.
-
IoUringIoEvent
public IoUringIoEvent(int res, int flags, byte opcode, long userData) Create a new instance- Parameters:
res- the result.flags- the flagsopcode- the op codeuserData- the user data that was given as part of the submission.
-
-
Method Details
-
update
-
res
public int res()Returns the result.- Returns:
- the result
-
flags
public int flags()Returns the flags.- Returns:
- flags
-
opcode
-
data
Deprecated.useuserData()instead.Returns the data that is passed as part ofIoUringIoOps.- Returns:
- data.
-
userData
public long userData()Returns the user data that was passed as part of the submission.- Returns:
- user 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
-
IoUringIoEvent(int,int,byte,long)instead.