Class OpcSubscriptionModel
java.lang.Object
com.inductiveautomation.ignition.gateway.opc.OpcSubscriptionModel
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid
addModelChangeListener
(String connectionName, OpcSubscriptionModel.ModelChangeListener listener) Add aOpcSubscriptionModel.ModelChangeListener
that will be notified of changes to the subscription model for anOpcConnection
identified byconnectionName
.void
removeModelChangeListener
(String connectionName, OpcSubscriptionModel.ModelChangeListener listener) Remove a previously-registeredOpcSubscriptionModel.ModelChangeListener
.
-
Method Details
-
addModelChangeListener
public void addModelChangeListener(String connectionName, OpcSubscriptionModel.ModelChangeListener listener) Add aOpcSubscriptionModel.ModelChangeListener
that will be notified of changes to the subscription model for anOpcConnection
identified byconnectionName
.The listener will receive immediate callbacks (on another thread) to
OpcSubscriptionModel.ModelChangeListener.onSubscriptionCreated(String, PropertySet)
andOpcSubscriptionModel.ModelChangeListener.onNodesCreated(String, List)
for any existing subscriptions and nodes.- Parameters:
connectionName
- the name of the connection to register the listener under.listener
- theOpcSubscriptionModel.ModelChangeListener
that will be notified.
-
removeModelChangeListener
public void removeModelChangeListener(String connectionName, OpcSubscriptionModel.ModelChangeListener listener) Remove a previously-registeredOpcSubscriptionModel.ModelChangeListener
.- Parameters:
connectionName
- the name of the connection the listener was registered under.listener
- theOpcSubscriptionModel.ModelChangeListener
to remove.
-