Class Subscription

    • Constructor Detail

      • Subscription

        public Subscription()
    • Method Detail

      • getOwner

        public EntityReference getOwner()

        Returns a reference to the entity that owns the subscription.

        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.

        a reference to the entity that owns the subscription