Class AmqpSubscriptionTracker


  • public class AmqpSubscriptionTracker
    extends java.lang.Object
    Class used to track named subscriptions on a connection to allow verifying current usage and assigning appropriate link names.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void consumerRemoved​(JmsConsumerInfo consumerInfo)  
      java.lang.String getFirstDurableSubscriptionLinkName​(java.lang.String subscriptionName, boolean hasClientID)  
      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.
      boolean isActiveExclusiveDurableSub​(java.lang.String subscriptionName)
      Checks if there is an exclusive durable subscription already recorded as active with the given subscription name.
      boolean isActiveSharedDurableSub​(java.lang.String subscriptionName)
      Checks if there is a shared durable subscription already recorded as active with the given subscription name.
      boolean isActiveSharedVolatileSub​(java.lang.String subscriptionName)
      Checks if there is an shared volatile subscription already recorded as active with the given subscription name.
      java.lang.String reserveNextSubscriptionLinkName​(java.lang.String subscriptionName, JmsConsumerInfo consumerInfo)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AmqpSubscriptionTracker

        public AmqpSubscriptionTracker()
    • 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)