@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public final class Subscription extends BaseSubscription implements ICharacteristic, java.lang.Cloneable
Constructor and Description |
---|
Subscription() |
Modifier and Type | Method and Description |
---|---|
EntityReference |
getOwner()
Returns a reference to the entity that owns the subscription. |
java.lang.String |
getSourceName()
Deprecated.
Use
getOwner() instead. |
getDescription, getName, isAsync, isEnabled
getAlertName, getEventDescriptor, getEventName, getSource, getSourceProperty, isAlertEvent, isAnyEvent, isPropertyEvent, setAlertName, setEventName, setSource, setSourceProperty
@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={8,0}) public java.lang.String getSourceName()
getOwner()
instead.@ThingworxExtensionApiMethod(since={8,0}) public EntityReference getOwner()
This entity may not necessarily be the subscriber; for example, a thing template or thing shape may define a subscription and thus be the "owner", but the thing that implements the template or shape would be the "subscriber".
The owner is referred to as the "source" in other classes, but this collides with the concept of a "source" on EventDescriptor and can be confusing to developers, so it is explicitly called out as the "owning entity" here.