Skip navigation links
Thingworx Platform API
9.0.0
com.thingworx.subscriptions.collections

Class SubscriptionCollection

  • All Implemented Interfaces:
    IDiffableObject, java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,Subscription>


    @ThingworxExtensionApiClass(since={6,6},
                                canInstantiate=true)
    public final class SubscriptionCollection
    extends GenericObjectCollection<Subscription>
    implements IDiffableObject
    A collection to store subscriptions. The underlying collection is a Map with the key being the name of the subscription and the value being the Subscription object itself.

    In versions prior to 8.4.0, the key was the string representation of the EventDescriptor the subscription was subscribed to. In 8.4.0 and later, this has been changed to use the name of the subscription itself. All subscriptions that previously existed on the Platform will be named according to the EventDescriptor that they are subscribed to, but this cannot be relied on going forward. If you need the event descriptor for the Subscription, use EventDescriptor.getEventDescriptor() instead.

    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
    • Method Summary

      • Methods inherited from class java.util.LinkedHashMap

        clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
      • Methods inherited from class java.util.HashMap

        clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
      • Methods inherited from class java.util.AbstractMap

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
    • Constructor Detail

      • SubscriptionCollection

        public SubscriptionCollection()