Interface PacketListenerHandle

All Superinterfaces:
AutoCloseable

public interface PacketListenerHandle extends AutoCloseable
Idempotent listener registration handle.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns whether this registration remains published.
    void
    Unregisters this listener.
  • Method Details

    • active

      boolean active()
      Returns whether this registration remains published.
      Returns:
      true while registered
    • close

      void close()
      Unregisters this listener.
      Specified by:
      close in interface AutoCloseable