public final class ServiceKeySubscription extends Subscription
Constructor and Description |
---|
ServiceKeySubscription(String name,
int serviceKey,
String description,
CompositionID originating,
CompositionID terminating,
CompositionID thirdParty,
int debugLevel,
boolean audit)
Create a new service key subscription object.
|
Modifier and Type | Method and Description |
---|---|
int |
getServiceKey()
Get the service key this subscription applies to.
|
getDebugLevel, getDescription, getName, getOriginatingComposition, getTerminatingComposition, getThirdPartyComposition, hasOriginatingComposition, hasTerminatingComposition, hasThirdPartyComposition, isAuditLoggingEnabled, toString
public ServiceKeySubscription(String name, int serviceKey, String description, CompositionID originating, CompositionID terminating, CompositionID thirdParty, int debugLevel, boolean audit)
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 subscriptionNullPointerException
- if name
is null.IllegalArgumentException
- if serviceKey
is invalid.