public static class TopicNotifications.TopicNotificationListener.Default extends Stream.Default implements TopicNotifications.TopicNotificationListener
This simply logs TopicNotifications.TopicNotificationListener
method calls at
debug
level. This class may be extended to provide more
specific processing.
TopicNotifications.TopicNotificationListener.Default, TopicNotifications.TopicNotificationListener.NotificationType
Constructor and Description |
---|
Default() |
Modifier and Type | Method and Description |
---|---|
void |
onDescendantNotification(String topicPath,
TopicNotifications.TopicNotificationListener.NotificationType type)
Notification for an immediate descendant of a selected topic path.
|
void |
onTopicNotification(String topicPath,
TopicSpecification specification,
TopicNotifications.TopicNotificationListener.NotificationType type)
A notification for a selected topic.
|
onClose
onError
public void onTopicNotification(String topicPath, TopicSpecification specification, TopicNotifications.TopicNotificationListener.NotificationType type)
TopicNotifications.TopicNotificationListener
onTopicNotification
in interface TopicNotifications.TopicNotificationListener
topicPath
- the path of the topic that this notification is forspecification
- the specification of the topic that this
notification is fortype
- the type of notificationpublic void onDescendantNotification(String topicPath, TopicNotifications.TopicNotificationListener.NotificationType type)
TopicNotifications.TopicNotificationListener
onDescendantNotification
in interface TopicNotifications.TopicNotificationListener
topicPath
- the path of the immediate descendant that is not selectedtype
- the type of notificationCopyright © 2022 Push Technology Ltd. All Rights Reserved.