Examples of basicQos()


Examples of com.rabbitmq.client.Channel.basicQos()

        final IAmqpConsumer consumeCallback = (IAmqpConsumer) parameters[4];
        String consumerTag;
        final Channel channel = AmqpOperationFactory.this.amqpDriver.getChannel (consumer);
        if (channel != null) {
          AmqpOperationFactory.this.amqpDriver.consumers.put (consumer, consumeCallback);
          channel.basicQos (qos);
          consumerTag = channel.basicConsume (queue, autoAck, consumer, true, exclusive, null, AmqpOperationFactory.this.amqpDriver.new ConsumerCallback ());
          if (!consumer.equals (consumerTag)) {
            AmqpOperationFactory.logger.error ("Received different consumer tag: consumerTag = " + consumerTag + " consumer " + consumer);
          }
        }
View Full Code Here

Examples of com.rabbitmq.client.Channel.basicQos()

          channel.txSelect();
        channel.exchangeDeclare(exchangeName, exchangeType);
        String queueName = channel.queueDeclare("", flags.contains("persistent"), true, false, null).getQueue();
        QueueingConsumer consumer = new QueueingConsumer(channel);
        if (prefetchCount > 0)
          channel.basicQos(prefetchCount);
        channel.basicConsume(queueName, autoAck, consumer);
        channel.queueBind(queueName, exchangeName, id);
        Thread t = new Thread(new Consumer(consumer, id, consumerTxSize, autoAck, stats, timeLimit));
        consumerThreads[i] = t;
        t.start();
View Full Code Here

Examples of org.springframework.amqp.rabbit.support.PublisherCallbackChannelImpl.basicQos()

    // 3.3.1 client
    channel.basicConsume("foo", false, (Map) null, null);
    verify(mockChannel).basicConsume("foo", false, (Map) null, null);

    channel.basicQos(3, false);
    verify(mockChannel).basicQos(3, false);

    doReturn(true).when(mockChannel).flowBlocked();
    assertTrue(channel.flowBlocked());
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.