tibemsSubscriptionInfo_GetConsumerCount

Function

Purpose

Get the number of consumers for this subscription.

C Declaration

tibems_status tibemsSubscriptionInfo_GetConsumerCount(
    tibemsSubscriptionInfo subscriptionInfo,
    tibems_int* consumerCount);

COBOL Call

CALL "tibemsSubscriptionInfo_GetConsumerCount"
 USING BY VALUE subscriptionInfo,
       BY REFERENCE consumerCount,
       RETURNING tibems-status
END-CALL.

Parameters

Parameter Description
subscriptionInfo Get the number of consumers for this subscription.
consumerCount Store the number of consumers.

Remarks

Returns the number of consumers for this subscription. If the subscription is not shared, the count cannot exceed 1. If the subscription is shared, the count can exceed 1, since a shared subscription can have many shared consumers.

For durable subscriptions (shared and unshared), this count can be 0 if there is no active durable consumer.