Interface Subscription

All Superinterfaces:
AutoCloseable

public interface Subscription extends AutoCloseable
A removable topic subscription.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Reports whether this subscription can still receive messages.
    void
    Removes the handler; repeated calls have no effect.
  • Method Details

    • active

      boolean active()
      Reports whether this subscription can still receive messages.
      Returns:
      true while active
    • close

      void close()
      Removes the handler; repeated calls have no effect.
      Specified by:
      close in interface AutoCloseable