DiffusionTM Android API 6.5.2
V- the value class
public static class Topics.ValueStream.Default<V> extends Topics.SubscriberStream.Default implements Topics.ValueStream<V>
This logs all calls at 'debug' level. These implementations can be useful during development but are usually overridden to provide meaningful processing.
|Constructor and Description|
|Modifier and Type||Method and Description|
Notifies an update to a topic value from the server.
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void onValue(String topicPath, TopicSpecification specification, V oldValue, V newValue)
This is also called to provide the current value for any matching topic that the session is already subscribed to when the stream is added.
topicPath- the topic path
specification- the topic specification
oldValue- the previous value. Will be null for the initial call to onValue for a topic. It can also be null if the topic's data type supports null values.
newValue- the new value derived from the last update received from the server. It can be null if the topic's data type supports null values.
Copyright © 2020 Push Technology Ltd. All Rights Reserved.