Interface TopicNotifications.TopicNotificationListener
- All Known Implementing Classes:
TopicNotifications.TopicNotificationListener.Default
- Enclosing interface:
- TopicNotifications
Listener for topic notifications.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classDefault listener.static enumThe type of notification that has been received. -
Method Summary
Modifier and TypeMethodDescriptionvoidonDescendantNotification(String topicPath, TopicNotifications.TopicNotificationListener.NotificationType type) Notification for an immediate descendant of a selected topic path.voidonTopicNotification(String topicPath, TopicSpecification specification, TopicNotifications.TopicNotificationListener.NotificationType type) A notification for a selected topic.
-
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 selectedtype- 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 forspecification- the specification of the topic that this notification is fortype- the type of notification
-