Class SubscriptionView

    • Field Detail

      • clientId

        protected final String clientId
      • userName

        protected final String userName
    • Constructor Detail

      • SubscriptionView

        public SubscriptionView​(String clientId,
                                String userName,
                                Subscription subs)
        Constructor
        Parameters:
        subs -
    • Method Detail

      • getConnection

        public ObjectName getConnection()
        Description copied from interface: SubscriptionViewMBean
        Returns the ObjectName of the Connection that created this Subscription. This value can be null if for instance this is an off-line durable subscription.
        Specified by:
        getConnection in interface SubscriptionViewMBean
        Returns:
        the name of the Connection that created this Subscription.
      • gc

        public void gc()
        The subscription should release as may references as it can to help the garbage collector reclaim memory.
      • isRetroactive

        public boolean isRetroactive()
        Specified by:
        isRetroactive in interface SubscriptionViewMBean
        Returns:
        whether or not the subscriber is retroactive or not
      • isExclusive

        public boolean isExclusive()
        Specified by:
        isExclusive in interface SubscriptionViewMBean
        Returns:
        whether or not the subscriber is an exclusive consumer
      • isDurable

        public boolean isDurable()
        Specified by:
        isDurable in interface SubscriptionViewMBean
        Returns:
        whether or not the subscriber is durable (persistent)
      • isNoLocal

        public boolean isNoLocal()
        Specified by:
        isNoLocal in interface SubscriptionViewMBean
        Returns:
        whether or not the subscriber ignores local messages
      • isDispatchAsync

        public boolean isDispatchAsync()
        Specified by:
        isDispatchAsync in interface SubscriptionViewMBean
        Returns:
        whether or not the subscriber is configured for async dispatch
      • getMaximumPendingMessageLimit

        public int getMaximumPendingMessageLimit()
        Specified by:
        getMaximumPendingMessageLimit in interface SubscriptionViewMBean
        Returns:
        the maximum number of pending messages allowed in addition to the prefetch size. If enabled to a non-zero value then this will perform eviction of messages for slow consumers on non-durable topics.
      • getConsumerInfo

        protected org.apache.activemq.command.ConsumerInfo getConsumerInfo()
      • getPrefetchSize

        public int getPrefetchSize()
        Specified by:
        getPrefetchSize in interface SubscriptionViewMBean
        Returns:
        the prefetch that has been configured for this subscriber
      • isMatchingQueue

        public boolean isMatchingQueue​(String queueName)
        Description copied from interface: SubscriptionViewMBean
        Returns true if this subscription (which may be using wildcards) matches the given queue name
        Specified by:
        isMatchingQueue in interface SubscriptionViewMBean
        Parameters:
        queueName - the JMS queue name to match against
        Returns:
        true if this subscription matches the given queue or false if not
      • isMatchingTopic

        public boolean isMatchingTopic​(String topicName)
        Description copied from interface: SubscriptionViewMBean
        Returns true if this subscription (which may be using wildcards) matches the given topic name
        Specified by:
        isMatchingTopic in interface SubscriptionViewMBean
        Parameters:
        topicName - the JMS topic name to match against
        Returns:
        true if this subscription matches the given topic or false if not
      • matchesDestination

        public boolean matchesDestination​(org.apache.activemq.command.ActiveMQDestination destination)
        Return true if this subscription matches the given destination
        Parameters:
        destination - the destination to compare against
        Returns:
        true if this subscription matches the given destination
      • getUserName

        public String getUserName()
        Description copied from interface: SubscriptionViewMBean
        Returns the User Name used to authorize creation of this Subscription. This value can be null if display of user name information is disabled.
        Specified by:
        getUserName in interface SubscriptionViewMBean
        Returns:
        the name of the user that created this Subscription