Class 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.
    • Constructor Detail

      • 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 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

        @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