Package com.thingworx.subscriptions
Class BaseSubscription
- java.lang.Object
-
- com.thingworx.types.events.EventDescriptor
-
- com.thingworx.subscriptions.BaseSubscription
-
- All Implemented Interfaces:
IDiffableObject
,IAspectContainer
,INamedObject
,java.lang.Cloneable
- Direct Known Subclasses:
Subscription
@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public class BaseSubscription extends EventDescriptor implements IAspectContainer, INamedObject, java.lang.Cloneable
-
-
Constructor Summary
Constructors Constructor Description BaseSubscription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescription()
java.lang.String
getName()
Gets the name of the subscription.boolean
isAsync()
boolean
isEnabled()
-
Methods inherited from class com.thingworx.types.events.EventDescriptor
getAlertName, getEventDescriptor, getEventName, getSource, getSourceProperty, isAlertEvent, isAnyEvent, isPostCommitEvent, isPropertyEvent, setAlertName, setEventName, setSource, setSourceProperty
-
-
-
-
Method Detail
-
getName
@ThingworxExtensionApiMethod(since={8,4}) public java.lang.String getName()
Gets the name of the subscription. Before 8.4.0, Subscriptions did not have names, so this method maintains backwards compatibility by setting the name from the event descriptor if no name is provided before this method is called.- Specified by:
getName
in interfaceINamedObject
-
getDescription
@ThingworxExtensionApiMethod(since={8,4}) public java.lang.String getDescription()
- Specified by:
getDescription
in interfaceINamedObject
-
isEnabled
@ThingworxExtensionApiMethod(since={6,6}) public boolean isEnabled()
-
isAsync
@ThingworxExtensionApiMethod(since={6,6}) public boolean isAsync()
-
-