public static class TopicUpdateControl.UpdateSource.Default extends TopicTreeHandler.Default implements TopicUpdateControl.UpdateSource
TopicUpdateControl.UpdateSource
implementation.
This simply logs callbacks at debug level.
TopicUpdateControl.UpdateSource.Default
Constructor and Description |
---|
Default() |
Modifier and Type | Method and Description |
---|---|
void |
onActive(String topicPath,
TopicUpdateControl.Updater updater)
State notification that this source is now active for the specified
topic path, and is therefore in a valid state to send updates on
topics at or below the registered topic path.
|
void |
onStandby(String topicPath)
Notification that this source is not currently allowed to provide
topic updates for the specified topic path.
|
onClose, onError, onRegistered
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onClose, onError, onRegistered
public void onActive(String topicPath, TopicUpdateControl.Updater updater)
TopicUpdateControl.UpdateSource
onActive
in interface TopicUpdateControl.UpdateSource
topicPath
- the registration pathupdater
- an updater that may be used to update topics at or
below the registered path. It is recommended that
TopicUpdateControl.Updater.valueUpdater(java.lang.Class<V>)
is used to obtain an updater
specific to certain topic types.public void onStandby(String topicPath)
TopicUpdateControl.UpdateSource
Server policy will dictate when this UpdateSource is set to be active.
If this UpdateSource was previously in an active
state, any
updater
instances for this topic path will no longer
be valid for use.
onStandby
in interface TopicUpdateControl.UpdateSource
topicPath
- the registration pathCopyright © 2020 Push Technology Ltd. All Rights Reserved.