Class IoUringIoEvent

  • All Implemented Interfaces:
    io.netty.channel.IoEvent

    public final class IoUringIoEvent
    extends Object
    implements io.netty.channel.IoEvent
    IoEvent that will be produced as an result of a IoUringIoOps.
    • Constructor Detail

      • IoUringIoEvent

        public IoUringIoEvent​(int res,
                              int flags,
                              byte opcode,
                              short data)
        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.
    • 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 the IoUringIoOps.
        Returns:
        opcode
      • data

        public short data()
        Returns the data that is passed as part of IoUringIoOps.
        Returns:
        data.
      • extraCqeData

        public 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.