Interface TopicNotifications.TopicNotificationListener

All Superinterfaces:
Callback, Stream
All Known Implementing Classes:
TopicNotifications.TopicNotificationListener.Default
Enclosing interface:
TopicNotifications

public static interface TopicNotifications.TopicNotificationListener extends Stream
Listener for topic notifications.
  • Method Details

    • onDescendantNotification

      void onDescendantNotification(String topicPath, TopicNotifications.TopicNotificationListener.NotificationType type)
      Notification for an immediate descendant of a selected topic path. This notifies the presence or absence of a descendant topic that may subsequently be explicitly selected.
      Parameters:
      topicPath - the path of the immediate descendant that is not selected
      type - the type of notification
    • onTopicNotification

      void onTopicNotification(String topicPath, TopicSpecification specification, TopicNotifications.TopicNotificationListener.NotificationType type)
      A notification for a selected topic.
      Parameters:
      topicPath - the path of the topic that this notification is for
      specification - the specification of the topic that this notification is for
      type - the type of notification