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

      Fields 
      Modifier and Type Field Description
      private java.nio.ByteBuffer extraCqeData  
      private int flags  
      private byte opcode  
      private int res  
      private long userData  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      short data()
      Deprecated.
      use userData() instead.
      java.nio.ByteBuffer extraCqeData()
      Returns the extra data for the CQE.
      int flags()
      Returns the flags.
      byte opcode()
      Returns the op code of the IoUringIoOps.
      int res()
      Returns the result.
      java.lang.String toString()  
      (package private) void update​(int res, int flags, byte opcode, long userData, java.nio.ByteBuffer extraCqeData)  
      long userData()
      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 Detail

      • opcode

        private byte opcode
      • res

        private int res
      • flags

        private int flags
      • userData

        private long userData
      • extraCqeData

        private java.nio.ByteBuffer extraCqeData
    • 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

      • 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