Class TagSubscriptionModel


  • public class TagSubscriptionModel
    extends java.lang.Object
    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 on asynchronously
    • Field Detail

      • subscriptions

        protected java.util.Map<java.lang.String,​java.util.Set<TagSubscription>> subscriptions
        SyncronizedMap - Key on both of these maps is the source name.
      • listenerLists

        protected java.util.Map<java.lang.String,​javax.swing.event.EventListenerList> listenerLists
        These are the entities that listen to changes in the model, keyed off of lcase(provider) name. SynchronizedMap
    • Constructor Detail

      • TagSubscriptionModel

        protected TagSubscriptionModel()
      • TagSubscriptionModel

        public TagSubscriptionModel​(GatewayContext context)
    • Method Detail

      • getSubscriptions

        public java.util.Collection<TagSubscription> getSubscriptions​(java.lang.String sourceName)
      • getAllSubscriptions

        public java.util.Map<java.lang.String,​java.util.Set<TagSubscription>> getAllSubscriptions()
      • getListenerList

        protected javax.swing.event.EventListenerList getListenerList​(java.lang.String sourceName)
        gets the listener list for the given server, and creates one if one doesn't exist
      • unsubscribe

        public void unsubscribe​(java.util.List<TagPath> paths,
                                java.util.List<TagChangeListener> listeners)