DiffusionTM Android API 6.5.2
V- the value class
public static interface Topics.ValueStream<V> extends Topics.SubscriberStream
A stream implementation can be registered using
stream will receive events for the topics that are selected by the topic
selector and have a type compatible with .
A stream implementation can also be registered as a fallback stream using
Fallback streams will receive events for all topics that are not selected
by other streams the session has registered using
Topics class documentation for further details of the use of
|Modifier and Type||Interface and Description|
|Modifier and Type||Method and Description|
Notifies an update to a topic value from the server.
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.