Class AmqpSubscriptionTracker
- java.lang.Object
-
- org.apache.qpid.jms.provider.amqp.AmqpSubscriptionTracker
-
public class AmqpSubscriptionTracker extends Object
Class 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)StringgetFirstDurableSubscriptionLinkName(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.StringreserveNextSubscriptionLinkName(String subscriptionName, JmsConsumerInfo consumerInfo)
-
-
-
Method Detail
-
reserveNextSubscriptionLinkName
public String reserveNextSubscriptionLinkName(String subscriptionName, JmsConsumerInfo consumerInfo)
-
getFirstDurableSubscriptionLinkName
public String getFirstDurableSubscriptionLinkName(String subscriptionName, boolean hasClientID)
-
isActiveExclusiveDurableSub
public boolean isActiveExclusiveDurableSub(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(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(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(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)
-
-