public class OpcSubscriptionModel
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
OpcSubscriptionModel.ModelChangeListener |
| Modifier and Type | Method and Description |
|---|---|
void |
addModelChangeListener(java.lang.String connectionName,
OpcSubscriptionModel.ModelChangeListener listener)
Add a
OpcSubscriptionModel.ModelChangeListener that will be notified of changes to the subscription model for an
OpcConnection identified by connectionName. |
void |
removeModelChangeListener(java.lang.String connectionName,
OpcSubscriptionModel.ModelChangeListener listener)
Remove a previously-registered
OpcSubscriptionModel.ModelChangeListener. |
public void addModelChangeListener(java.lang.String connectionName,
OpcSubscriptionModel.ModelChangeListener listener)
OpcSubscriptionModel.ModelChangeListener that will be notified of changes to the subscription model for an
OpcConnection identified by connectionName.
The listener will receive immediate callbacks (on another thread) to
OpcSubscriptionModel.ModelChangeListener.onSubscriptionCreated(String, PropertySet) and
OpcSubscriptionModel.ModelChangeListener.onNodesCreated(String, List) for any existing subscriptions and nodes.
connectionName - the name of the connection to register the listener under.listener - the OpcSubscriptionModel.ModelChangeListener that will be notified.public void removeModelChangeListener(java.lang.String connectionName,
OpcSubscriptionModel.ModelChangeListener listener)
OpcSubscriptionModel.ModelChangeListener.connectionName - the name of the connection the listener was registered under.listener - the OpcSubscriptionModel.ModelChangeListener to remove.