/** * Add a message consumer. * * @param consumer - message consumer. * @throws JMSException */ protected void addConsumer(ActiveMQMessageConsumer consumer) throws JMSException { this.consumers.add(consumer); if (consumer.isDurableSubscriber()) { stats.onCreateDurableSubscriber(); } this.connection.addDispatcher(consumer.getConsumerId(), this); }
/** * Add a message consumer. * * @param consumer - message consumer. * @throws JMSException */ protected void addConsumer(ActiveMQMessageConsumer consumer) throws JMSException { this.consumers.add(consumer); if (consumer.isDurableSubscriber()) { stats.onCreateDurableSubscriber(); } this.connection.addDispatcher(consumer.getConsumerId(), this); }
/** * Add a message consumer. * * @param consumer - message consumer. * @throws JMSException */ protected void addConsumer(ActiveMQMessageConsumer consumer) throws JMSException { this.consumers.add(consumer); if (consumer.isDurableSubscriber()) { stats.onCreateDurableSubscriber(); } this.connection.addDispatcher(consumer.getConsumerId(), this); }
/** * Add a message consumer. * * @param consumer - message consumer. * @throws JMSException */ protected void addConsumer(ActiveMQMessageConsumer consumer) throws JMSException { this.consumers.add(consumer); if (consumer.isDurableSubscriber()) { stats.onCreateDurableSubscriber(); } this.connection.addDispatcher(consumer.getConsumerId(), this); }
/** * Add a message consumer. * * @param consumer - message consumer. * @throws JMSException */ protected void addConsumer(ActiveMQMessageConsumer consumer) throws JMSException { this.consumers.add(consumer); if (consumer.isDurableSubscriber()) { stats.onCreateDurableSubscriber(); } this.connection.addDispatcher(consumer.getConsumerId(), this); }