Class SingleThreadIoEventLoop.IoRegistrationWrapper

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T attachment()
      Implementation specific attachment, which might be null.
      boolean cancel()
      Cancel the registration.
      boolean isValid()
      Returns true if the registration is still valid.
      long submit​(IoOps ops)
      Submit the IoOps to the registration.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IoRegistrationWrapper

        IoRegistrationWrapper​(IoRegistration registration)
    • Method Detail

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