Interface Subscription

All Superinterfaces:
AsynchronousCloseable, AutoCloseable

public interface Subscription extends AsynchronousCloseable
Can be used to unsubscribe from a topic and stop receiving data.
Since:
1.6.0
See Also:
  • Method Details

    • getTopic

      String getTopic()
      Returns the topic used when subscription was created.
      Returns:
      subscription topic, never null
    • getOptions

      MessageOptions getOptions()
      Returns the message options used when subscription was created.
      Returns:
      message options, may be null