public interface ItemChangeListener
Modifier and Type | Method and Description |
---|---|
void |
dataChanged(String itemId,
Variant value,
Map<String,Variant> attributes,
boolean cache)
A change on the data item occurred.
|
void |
subscriptionChanged(String itemId,
SubscriptionState subscriptionState)
Indicating a change in the item subscription
|
void dataChanged(String itemId, Variant value, Map<String,Variant> attributes, boolean cache)
itemId
- The item id that changedvalue
- The new value, or null
if the value did not
changeattributes
- The attributes that changed, may be null
if no
attribute change at allcache
- 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 subscriptionChanged(String itemId, SubscriptionState subscriptionState)
itemId
- The item ID that changedsubscriptionState
- the new subscription state