Class TopicNotifications.TopicNotificationListener.Default
java.lang.Object
com.pushtechnology.diffusion.client.callbacks.Callback.Default
com.pushtechnology.diffusion.client.callbacks.Stream.Default
com.pushtechnology.diffusion.client.features.control.topics.TopicNotifications.TopicNotificationListener.Default
- All Implemented Interfaces:
Callback,Stream,TopicNotifications.TopicNotificationListener
- Enclosing interface:
- TopicNotifications.TopicNotificationListener
public static class TopicNotifications.TopicNotificationListener.Default
extends Stream.Default
implements TopicNotifications.TopicNotificationListener
Default listener.
This simply logs TopicNotifications.TopicNotificationListener method calls at
debug level. This class may be extended to provide more
specific processing.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.pushtechnology.diffusion.client.callbacks.Callback
Callback.DefaultNested classes/interfaces inherited from interface com.pushtechnology.diffusion.client.callbacks.Stream
Stream.DefaultNested classes/interfaces inherited from interface com.pushtechnology.diffusion.client.features.control.topics.TopicNotifications.TopicNotificationListener
TopicNotifications.TopicNotificationListener.Default, TopicNotifications.TopicNotificationListener.NotificationType -
Constructor Summary
Constructors -
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.Methods inherited from class com.pushtechnology.diffusion.client.callbacks.Stream.Default
onCloseMethods inherited from class com.pushtechnology.diffusion.client.callbacks.Callback.Default
onError
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
onTopicNotification
public void onTopicNotification(String topicPath, TopicSpecification specification, TopicNotifications.TopicNotificationListener.NotificationType type) Description copied from interface:TopicNotifications.TopicNotificationListenerA notification for a selected topic.- Specified by:
onTopicNotificationin interfaceTopicNotifications.TopicNotificationListener- 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
-
onDescendantNotification
public void onDescendantNotification(String topicPath, TopicNotifications.TopicNotificationListener.NotificationType type) Description copied from interface:TopicNotifications.TopicNotificationListenerNotification 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.- Specified by:
onDescendantNotificationin interfaceTopicNotifications.TopicNotificationListener- Parameters:
topicPath- the path of the immediate descendant that is not selectedtype- the type of notification
-