public class ItemSyncController extends Object implements ItemUpdateListener
| Constructor and Description |
|---|
ItemSyncController(Connection connection,
ItemManagerImpl itemManager,
String itemId) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ItemUpdateListener listener) |
void |
disconnect() |
String |
getItemName() |
void |
notifyDataChange(Variant value,
Map<String,Variant> attributes,
boolean cache)
A change on the data item occurred.
|
void |
notifySubscriptionChange(SubscriptionState subscriptionState,
Throwable e)
Notify a change in the subscription change
|
void |
remove(ItemUpdateListener listener) |
protected void |
subscribe() |
void |
sync(boolean force) |
protected void |
unsubscribe() |
public ItemSyncController(Connection connection, ItemManagerImpl itemManager, String itemId)
public String getItemName()
public void add(ItemUpdateListener listener)
public void remove(ItemUpdateListener listener)
public void sync(boolean force)
protected void subscribe()
protected void unsubscribe()
public void notifyDataChange(Variant value, Map<String,Variant> attributes, boolean cache)
ItemUpdateListenernotifyDataChange in interface ItemUpdateListenervalue - 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 onespublic void notifySubscriptionChange(SubscriptionState subscriptionState, Throwable e)
ItemUpdateListenernotifySubscriptionChange in interface ItemUpdateListenersubscriptionState - the new subscription changee - the new subscription error or null if everything
is okpublic void disconnect()
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.