Class SingleThreadIoEventLoop.IoRegistrationWrapper

java.lang.Object
io.netty.channel.SingleThreadIoEventLoop.IoRegistrationWrapper
All Implemented Interfaces:
IoRegistration
Enclosing class:
SingleThreadIoEventLoop

private final class SingleThreadIoEventLoop.IoRegistrationWrapper extends java.lang.Object implements IoRegistration
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final IoRegistration
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    Implementation specific attachment, which might be null.
    boolean
    Cancel the registration.
    boolean
    Returns true if the registration is still valid.
    long
    Submit the IoOps to the registration.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • IoRegistrationWrapper

      IoRegistrationWrapper(IoRegistration registration)
  • Method Details

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