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 a IoUringIoOps.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private java.nio.ByteBuffer
     
    private int
     
    private byte
     
    private int
     
    private long
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    IoUringIoEvent(int res, int flags, byte opcode, long userData)
    Create a new instance
    IoUringIoEvent(int res, int flags, byte opcode, short data)
    Deprecated.
  • Method Summary

    Modifier and Type
    Method
    Description
    short
    Deprecated.
    use userData() instead.
    java.nio.ByteBuffer
    Returns the extra data for the CQE.
    int
    Returns the flags.
    byte
    Returns the op code of the IoUringIoOps.
    int
    res()
    Returns the result.
    java.lang.String
     
    (package private) void
    update(int res, int flags, byte opcode, long userData, java.nio.ByteBuffer extraCqeData)
     
    long
    Returns the user data that was passed as part of the submission.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • opcode

      private byte opcode
    • res

      private int res
    • flags

      private int flags
    • userData

      private long userData
    • extraCqeData

      private java.nio.ByteBuffer extraCqeData
  • Constructor Details

    • IoUringIoEvent

      @Deprecated public IoUringIoEvent(int res, int flags, byte opcode, short data)
      Deprecated.
      Create a new instance
      Parameters:
      res - the result.
      flags - the flags
      opcode - the op code
      data - 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 flags
      opcode - the op code
      userData - the user data that was given as part of the submission.
  • Method Details

    • 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 the IoUringIoOps.
      Returns:
      opcode
    • data

      @Deprecated public short data()
      Deprecated.
      use userData() instead.
      Returns the data that is passed as part of IoUringIoOps.
      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 with IORING_SETUP_CQE32. As this ByteBuffer maps into the shared completion queue its important to not hold any reference to it outside of the IoHandle.handle(IoRegistration, IoEvent) method.
      Returns:
      extra data for the CQE or null.
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object