Examples of TopicSubscription


Examples of org.apache.activemq.broker.region.TopicSubscription

    /**
     * @return the number of messages discarded due to being a slow consumer
     */
    public int getDiscardedCount() {
        TopicSubscription topicSubscription = getTopicSubscription();
        return topicSubscription != null ? topicSubscription.discarded() : 0;
    }
View Full Code Here

Examples of org.apache.activemq.broker.region.TopicSubscription

    /**
     * @return the maximun number of messages that can be pending.
     */
    public int getMaximumPendingQueueSize() {
        TopicSubscription topicSubscription = getTopicSubscription();
        return topicSubscription != null ? topicSubscription.getMaximumPendingMessages() : 0;
    }
View Full Code Here

Examples of org.apache.activemq.broker.region.TopicSubscription

    /**
     *
     */
    public void setMaximumPendingQueueSize(int max) {
        TopicSubscription topicSubscription = getTopicSubscription();
        if (topicSubscription != null) {
            topicSubscription.setMaximumPendingMessages(max);
        }
    }
View Full Code Here

Examples of org.apache.activemq.broker.region.TopicSubscription

        List<Subscription> consumers = new ArrayList<Subscription>();

        for (int i=0; i<3; i++) {
            ConsumerInfo instance = info.copy();
            instance.setPriority((byte)i);
            consumers.add(new TopicSubscription(null, context, instance, usageManager));
        }
        underTest.dispatch(node, null, consumers);

        long count = 0;
        for (Subscription consumer : consumers) {
View Full Code Here

Examples of org.apache.activemq.broker.region.TopicSubscription

    /**
     * @return the number of messages discarded due to being a slow consumer
     */
    public int getDiscardedCount() {
        TopicSubscription topicSubscription = getTopicSubscription();
        return topicSubscription != null ? topicSubscription.discarded() : 0;
    }
View Full Code Here

Examples of org.apache.activemq.broker.region.TopicSubscription

    /**
     * @return the maximun number of messages that can be pending.
     */
    public int getMaximumPendingQueueSize() {
        TopicSubscription topicSubscription = getTopicSubscription();
        return topicSubscription != null ? topicSubscription.getMaximumPendingMessages() : 0;
    }
View Full Code Here

Examples of org.apache.activemq.broker.region.TopicSubscription

    /**
     *
     */
    public void setMaximumPendingQueueSize(int max) {
        TopicSubscription topicSubscription = getTopicSubscription();
        if (topicSubscription != null) {
            topicSubscription.setMaximumPendingMessages(max);
        }
    }
View Full Code Here

Examples of org.apache.activemq.broker.region.TopicSubscription

    /**
     * @return the number of messages discarded due to being a slow consumer
     */
    public int getDiscardedCount() {
        TopicSubscription topicSubscription = getTopicSubscription();
        return topicSubscription != null ? topicSubscription.discarded() : 0;
    }
View Full Code Here

Examples of org.apache.activemq.broker.region.TopicSubscription

    /**
     * @return the maximun number of messages that can be pending.
     */
    public int getMaximumPendingQueueSize() {
        TopicSubscription topicSubscription = getTopicSubscription();
        return topicSubscription != null ? topicSubscription.getMaximumPendingMessages() : 0;
    }
View Full Code Here

Examples of org.apache.activemq.broker.region.TopicSubscription

   
    /**
     *
     */
    public void setMaximumPendingQueueSize(int max) {
        TopicSubscription topicSubscription = getTopicSubscription();
        if ( topicSubscription != null ) {
          topicSubscription.setMaximumPendingMessages(max);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.