Class ServiceKeySubscription

    • Constructor Detail

      • ServiceKeySubscription

        public ServiceKeySubscription​(String name,
                                      int serviceKey,
                                      String description,
                                      CompositionID originating,
                                      CompositionID terminating,
                                      CompositionID thirdParty,
                                      int debugLevel,
                                      boolean audit)
        Create a new service key subscription object.
        Parameters:
        name - the name of this subscription.
        serviceKey - the service key that this subscription applies to. Must be greater than or equal to 0.
        description - a description of this subscription. May be null.
        originating - the composition that will be invoked for an originating trigger if the subscription is triggered. May be null.
        terminating - composition that will be invoked for a terminating trigger if the subscription is triggered. May be null.
        thirdParty - composition that will be invoked for a third-party call trigger if the subscription is triggered. May be null.
        debugLevel - the debug level for the subscription. Fine-grained tracing debug levels are given in the package summary.
        audit - specifies if auditing will be enabled for this subscription
        Throws:
        NullPointerException - if name is null.
        IllegalArgumentException - if serviceKey is invalid.
    • Method Detail

      • getServiceKey

        public int getServiceKey()
        Get the service key this subscription applies to.
        Returns:
        the service key.