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 Details

    • AmqpSubscriptionTracker

      public AmqpSubscriptionTracker()
  • Method Details

    • 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)