Class IoUringIoHandler.DefaultIoUringIoRegistration

java.lang.Object
io.netty.channel.uring.IoUringIoHandler.DefaultIoUringIoRegistration
All Implemented Interfaces:
IoRegistration
Enclosing class:
IoUringIoHandler

private final class IoUringIoHandler.DefaultIoUringIoRegistration extends Object implements IoRegistration
  • Field Details

    • canceled

      private final AtomicBoolean canceled
    • executor

      private final ThreadAwareExecutor executor
    • event

      private final IoUringIoEvent event
    • handle

      final IoUringIoHandle handle
    • removeLater

      private boolean removeLater
    • outstandingCompletions

      private int outstandingCompletions
    • id

      private int id
  • Constructor Details

  • Method Details

    • setId

      void setId(int id)
    • submit

      public long submit(IoOps ops)
      Description copied from interface: IoRegistration
      Submit the IoOps to the registration.
      Specified by:
      submit in interface IoRegistration
      Parameters:
      ops - ops.
      Returns:
      an identifier for the operation, which might be unique or not (depending on the implementation).
    • submitFastPath0

      private void submitFastPath0(IoUringIoOps ioOps, long seq)
    • submitSlowPath0

      private void submitSlowPath0(IoUringIoOps ioOps, long token, long userData)
    • canUseFastPath

      private boolean canUseFastPath(long userData)
    • fd

      private int fd()
    • attachment

      public <T> T attachment()
      Description copied from interface: IoRegistration
      Implementation specific attachment, which might be null.
      Specified by:
      attachment in interface IoRegistration
      Returns:
      attachment.
    • isValid

      public boolean isValid()
      Description copied from interface: IoRegistration
      Returns true if the registration is still valid. Once IoRegistration.cancel() is called this will return false.
      Specified by:
      isValid in interface IoRegistration
      Returns:
      valid.
    • cancel

      public boolean cancel()
      Description copied from interface: IoRegistration
      Cancel the registration.
      Specified by:
      cancel in interface IoRegistration
      Returns:
      true if cancellation was successful, false otherwise.
    • tryRemove

      private void tryRemove()
    • remove

      private void remove()
    • close

      void close()
    • handle

      void handle(int res, int flags, byte op, long userData, ByteBuffer extraCqeData)