Class TagSubscriptionModel
java.lang.Object
com.inductiveautomation.ignition.gateway.tags.model.TagSubscriptionModel
The TagSubscriptionModel holds subscriptions to tags, broken up by provider. Providers can add listeners in order to
be notified of subscription changes. Subscription change notifications are published asynchronously
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map<String,
EventListenerList> These are the entities that listen to changes in the model, keyed off of lcase(provider) name.protected final Map<String,
Set<TagSubscription>> SyncronizedMap - Key on both of these maps is the source name. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TagSubscriptionModel
(ExecutionManager executionManager) TagSubscriptionModel
(GatewayContext context) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(String sourceName, TagSubscriptionChangeListener listener) protected EventListenerList
getListenerList
(String sourceName) gets the listener list for the given server, and creates one if one doesn't existgetSubscriptions
(String sourceName) void
removeListener
(String sourceName, TagSubscriptionChangeListener listener) void
subscribe
(TagPath path, TagChangeListener listener) void
subscribe
(List<TagPath> paths, List<TagChangeListener> listeners) void
unsubscribe
(TagPath path, TagChangeListener listener) void
unsubscribe
(List<TagPath> paths, List<TagChangeListener> listeners) protected List<TagSubscription>
zipper
(List<TagPath> paths, List<TagChangeListener> listeners)
-
Field Details
-
subscriptions
SyncronizedMap - Key on both of these maps is the source name. -
listenerLists
These are the entities that listen to changes in the model, keyed off of lcase(provider) name. SynchronizedMap
-
-
Constructor Details
-
TagSubscriptionModel
protected TagSubscriptionModel() -
TagSubscriptionModel
-
TagSubscriptionModel
-
-
Method Details
-
getSubscriptions
-
getAllSubscriptions
-
getListenerList
gets the listener list for the given server, and creates one if one doesn't exist -
addListener
-
removeListener
-
subscribe
-
unsubscribe
-
subscribe
-
unsubscribe
-
zipper
-