Search in sources :

Example 1 with AMQConsumerBrokerExchange

use of org.apache.activemq.artemis.core.protocol.openwire.amq.AMQConsumerBrokerExchange in project activemq-artemis by apache.

the class OpenWireConnection method updateConsumer.

public void updateConsumer(ConsumerControl consumerControl) {
    ConsumerId consumerId = consumerControl.getConsumerId();
    AMQConsumerBrokerExchange exchange = this.consumerExchanges.get(consumerId);
    if (exchange != null) {
        exchange.updateConsumerPrefetchSize(consumerControl.getPrefetch());
    }
}
Also used : AMQConsumerBrokerExchange(org.apache.activemq.artemis.core.protocol.openwire.amq.AMQConsumerBrokerExchange) ConsumerId(org.apache.activemq.command.ConsumerId)

Aggregations

AMQConsumerBrokerExchange (org.apache.activemq.artemis.core.protocol.openwire.amq.AMQConsumerBrokerExchange)1 ConsumerId (org.apache.activemq.command.ConsumerId)1