Example usage for com.rabbitmq.client Channel basicQos

List of usage examples for com.rabbitmq.client Channel basicQos

Introduction

In this page you can find the example usage for com.rabbitmq.client Channel basicQos.

Prototype

void basicQos(int prefetchCount) throws IOException;

Source Link

Document

Request a specific prefetchCount "quality of service" settings for this channel.

Usage

From source file:xyz.cloudbans.barker.amqp.AmqpBarkerTest.java

License:Apache License

private Channel openChannel() throws IOException {
    Channel channel = connection.createChannel();
    channel.basicQos(1);
    return channel;
}