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

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

Introduction

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

Prototype

Map<String, Object> getArguments();

Source Link

Document

A map of arguments used to declare the exchange.

Usage

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

private void declareExchanges(final Channel channel, final Exchange... exchanges) throws IOException {
    for (final Exchange exchange : exchanges) {
        if (logger.isDebugEnabled()) {
            logger.debug("declaring Exchange '" + exchange.getName() + "'");
        }/*from  w  w  w .ja v a  2  s  . c o m*/

        if (!isDeclaringDefaultExchange(exchange)) {
            channel.exchangeDeclare(exchange.getName(), exchange.getType(), exchange.isDurable(),
                    exchange.isAutoDelete(), exchange.getArguments());
        }
    }
}