public class DataItemSubscriptionSource extends Object implements SubscriptionSource<String>, ItemListener
| Constructor and Description |
|---|
DataItemSubscriptionSource(Executor executor,
DataItem dataItem,
HiveEventListener hiveEventListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(Collection<SubscriptionInformation<String>> listeners) |
void |
dataChanged(DataItem item,
Variant variant,
Map<String,Variant> attributes,
boolean cache) |
void |
removeListener(Collection<SubscriptionInformation<String>> listeners) |
boolean |
supportsListener(SubscriptionInformation<String> subscriptionInformation)
Validate if the provided subcription information can bind to this
subscription source
|
public DataItemSubscriptionSource(Executor executor, DataItem dataItem, HiveEventListener hiveEventListener)
public void addListener(Collection<SubscriptionInformation<String>> listeners)
addListener in interface SubscriptionSource<String>public void removeListener(Collection<SubscriptionInformation<String>> listeners)
removeListener in interface SubscriptionSource<String>public boolean supportsListener(SubscriptionInformation<String> subscriptionInformation)
SubscriptionSourcesupportsListener in interface SubscriptionSource<String>subscriptionInformation - The information to checktrue if the listener can bind to this event source.
In this case the SubscriptionSource.addListener(Collection) method may not
reject the listener.public void dataChanged(DataItem item, Variant variant, Map<String,Variant> attributes, boolean cache)
dataChanged in interface ItemListenerCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.