Class AmqpSubscriptionTracker
java.lang.Object
org.apache.qpid.jms.provider.amqp.AmqpSubscriptionTracker
Class used to track named subscriptions on a connection to allow verifying
current usage and assigning appropriate link names.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconsumerRemoved(JmsConsumerInfo consumerInfo) getFirstDurableSubscriptionLinkName(String subscriptionName, boolean hasClientID) booleanisActiveDurableSub(String subscriptionName) Checks if there is either a shared or exclusive durable subscription already recorded as active with the given subscription name.booleanisActiveExclusiveDurableSub(String subscriptionName) Checks if there is an exclusive durable subscription already recorded as active with the given subscription name.booleanisActiveSharedDurableSub(String subscriptionName) Checks if there is a shared durable subscription already recorded as active with the given subscription name.booleanisActiveSharedVolatileSub(String subscriptionName) Checks if there is an shared volatile subscription already recorded as active with the given subscription name.reserveNextSubscriptionLinkName(String subscriptionName, JmsConsumerInfo consumerInfo)
-
Constructor Details
-
AmqpSubscriptionTracker
public AmqpSubscriptionTracker()
-
-
Method Details
-
reserveNextSubscriptionLinkName
public String reserveNextSubscriptionLinkName(String subscriptionName, JmsConsumerInfo consumerInfo) -
getFirstDurableSubscriptionLinkName
-
isActiveExclusiveDurableSub
Checks if there is an exclusive durable subscription already recorded as active with the given subscription name.- Parameters:
subscriptionName- name of subscription to check- Returns:
- true if there is an exclusive durable sub with this name already active
-
isActiveDurableSub
Checks if there is either a shared or exclusive durable subscription already recorded as active with the given subscription name.- Parameters:
subscriptionName- name of subscription to check- Returns:
- true if there is a durable sub with this name already active
-
consumerRemoved
-