Class AmqpSubscriptionTracker
- java.lang.Object
-
- org.apache.qpid.jms.provider.amqp.AmqpSubscriptionTracker
-
public class AmqpSubscriptionTracker extends java.lang.ObjectClass used to track named subscriptions on a connection to allow verifying current usage and assigning appropriate link names.
-
-
Constructor Summary
Constructors Constructor Description AmqpSubscriptionTracker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsumerRemoved(JmsConsumerInfo consumerInfo)java.lang.StringgetFirstDurableSubscriptionLinkName(java.lang.String subscriptionName, boolean hasClientID)booleanisActiveDurableSub(java.lang.String subscriptionName)Checks if there is either a shared or exclusive durable subscription already recorded as active with the given subscription name.booleanisActiveExclusiveDurableSub(java.lang.String subscriptionName)Checks if there is an exclusive durable subscription already recorded as active with the given subscription name.booleanisActiveSharedDurableSub(java.lang.String subscriptionName)Checks if there is a shared durable subscription already recorded as active with the given subscription name.booleanisActiveSharedVolatileSub(java.lang.String subscriptionName)Checks if there is an shared volatile subscription already recorded as active with the given subscription name.java.lang.StringreserveNextSubscriptionLinkName(java.lang.String subscriptionName, JmsConsumerInfo consumerInfo)
-
-
-
Method Detail
-
reserveNextSubscriptionLinkName
public java.lang.String reserveNextSubscriptionLinkName(java.lang.String subscriptionName, JmsConsumerInfo consumerInfo)
-
getFirstDurableSubscriptionLinkName
public java.lang.String getFirstDurableSubscriptionLinkName(java.lang.String subscriptionName, boolean hasClientID)
-
isActiveExclusiveDurableSub
public boolean isActiveExclusiveDurableSub(java.lang.String subscriptionName)
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
-
isActiveSharedDurableSub
public boolean isActiveSharedDurableSub(java.lang.String subscriptionName)
Checks if there is a shared durable subscription already recorded as active with the given subscription name.- Parameters:
subscriptionName- name of subscription to check- Returns:
- true if there is a shared durable sub with this name already active
-
isActiveDurableSub
public boolean isActiveDurableSub(java.lang.String subscriptionName)
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
-
isActiveSharedVolatileSub
public boolean isActiveSharedVolatileSub(java.lang.String subscriptionName)
Checks if there is an shared volatile subscription already recorded as active with the given subscription name.- Parameters:
subscriptionName- name of subscription to check- Returns:
- true if there is a shared volatile sub with this name already active
-
consumerRemoved
public void consumerRemoved(JmsConsumerInfo consumerInfo)
-
-