Example usage for org.springframework.amqp.core Queue getArguments

List of usage examples for org.springframework.amqp.core Queue getArguments

Introduction

In this page you can find the example usage for org.springframework.amqp.core Queue getArguments.

Prototype

public java.util.Map<java.lang.String, java.lang.Object> getArguments() 

Source Link

Usage

From source file:org.springframework.amqp.rabbit.core.RabbitAdmin.java

private void declareQueues(final Channel channel, final Queue... queues) throws IOException {
    for (Queue queue : queues) {
        if (!queue.getName().startsWith("amq.")) {
            if (logger.isDebugEnabled()) {
                logger.debug("declaring Queue '" + queue.getName() + "'");
            }//w ww  .  j a  v a  2 s .c o m
            channel.queueDeclare(queue.getName(), queue.isDurable(), queue.isExclusive(), queue.isAutoDelete(),
                    queue.getArguments());
        } else if (logger.isDebugEnabled()) {
            logger.debug("Queue with name that starts with 'amq.' cannot be declared.");
        }
    }
}