public interface ItemUpdateListener
Modifier and Type | Method and Description |
---|---|
void |
notifyDataChange(Variant value,
Map<String,Variant> attributes,
boolean cache)
A change on the data item occurred.
|
void |
notifySubscriptionChange(SubscriptionState subscriptionState,
Throwable subscriptionError)
Notify a change in the subscription change
|
void notifyDataChange(Variant value, Map<String,Variant> attributes, boolean cache)
value
- The new value, or null
if the value did not
changeattributes
- The attributes that changed, may be null
if no
attribute change at all. The must be unmodifiable by the
receivercache
- Indicating that the change came from the cache, this means
that the change was not triggered by a device and that
all attribute where sent, not only the changed onesvoid notifySubscriptionChange(SubscriptionState subscriptionState, Throwable subscriptionError)
subscriptionState
- the new subscription changesubscriptionError
- the new subscription error or null
if everything
is ok