Skip navigation links
Thingworx Platform API
8.5.0
com.thingworx.thingshape

Class ThingShapeInstance

    • Constructor Detail

      • ThingShapeInstance

        public ThingShapeInstance()
    • Method Detail

      • getEventHandler

        @ThingworxExtensionApiMethod(since={6,6})
        public IServiceHandler getEventHandler(java.lang.String handlerName)


        Returns the event handler with the given name.
        Parameters:
        handlerName - - The String version of the handler name - usually the Subscription Name.
        Returns:
        The first occurrence of a handler with this name or null if none are defined.
      • getEventHandlers

        @ThingworxExtensionApiMethod(since={8,4},
                                     deprecatedSince={9,0})
        public EventHandlerSet getEventHandlers(java.lang.String subscriptionName)


        Returns all event handlers with the given handler name. This method is not deprecated because the event handlers are looked up by their respective names and not which event they are firing from. This will always return an eventHandlerSet with exactly 1 entry. Use getEventHandler instead.
        Parameters:
        subscriptionName - - The String version of the handler name - usually the Subscription Name.
        Returns:
        An EventHandlerSet with the handler associated with the provided handlerName or null if none are defined.