Class MultiEventSubscriptionCollection
java.lang.Object
java.util.AbstractMap<String,MultiEventSubscription>
java.util.HashMap<String,MultiEventSubscription>
java.util.LinkedHashMap<String,MultiEventSubscription>
com.thingworx.types.collections.GenericObjectCollection<MultiEventSubscription>
com.thingworx.subscriptions.collections.MultiEventSubscriptionCollection
- All Implemented Interfaces:
IDiffableObject
,Serializable
,Cloneable
,Map<String,
,MultiEventSubscription> SequencedMap<String,
MultiEventSubscription>
@ThingworxExtensionApiClass(since={9,5},
canInstantiate=true)
public class MultiEventSubscriptionCollection
extends GenericObjectCollection<MultiEventSubscription>
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 MultiEventSubscription.getEvents() instead.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
-
Method Summary
Methods inherited from class com.thingworx.types.collections.GenericObjectCollection
containsEntity, getDescription, getName, getNames
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, newLinkedHashMap, putFirst, putLast, removeEldestEntry, replaceAll, reversed, sequencedEntrySet, sequencedKeySet, sequencedValues, values
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, newHashMap, 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
Methods inherited from interface java.util.SequencedMap
firstEntry, lastEntry, pollFirstEntry, pollLastEntry
-
Constructor Details
-
MultiEventSubscriptionCollection
public MultiEventSubscriptionCollection()
-