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
IoEventthat will be produced as an result of aIoUringIoOps.
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.ByteBufferextraCqeDataprivate intflagsprivate byteopcodeprivate intresprivate longuserData
-
Constructor Summary
Constructors Constructor Description IoUringIoEvent(int res, int flags, byte opcode, long userData)Create a new instanceIoUringIoEvent(int res, int flags, byte opcode, short data)Deprecated.useIoUringIoEvent(int,int,byte,long)instead.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description shortdata()Deprecated.useuserData()instead.java.nio.ByteBufferextraCqeData()Returns the extra data for the CQE.intflags()Returns the flags.byteopcode()Returns the op code of theIoUringIoOps.intres()Returns the result.java.lang.StringtoString()(package private) voidupdate(int res, int flags, byte opcode, long userData, java.nio.ByteBuffer extraCqeData)longuserData()Returns the user data that was passed as part of the submission.
-
-
-
Constructor Detail
-
IoUringIoEvent
@Deprecated public IoUringIoEvent(int res, int flags, byte opcode, short data)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 Detail
-
update
void update(int res, int flags, byte opcode, long userData, java.nio.ByteBuffer extraCqeData)
-
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
@Deprecated public short 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
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 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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-