Example usage for org.springframework.amqp.core ReplyToAddressCallback ReplyToAddressCallback

List of usage examples for org.springframework.amqp.core ReplyToAddressCallback ReplyToAddressCallback

Introduction

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

Prototype

ReplyToAddressCallback

Source Link

Usage

From source file:org.kurento.rabbitmq.RabbitTemplate.java

@Override
public <R, S> boolean receiveAndReply(final String queueName, ReceiveAndReplyCallback<R, S> callback,
        final String replyExchange, final String replyRoutingKey) throws AmqpException {
    return this.receiveAndReply(queueName, callback, new ReplyToAddressCallback<S>() {

        @Override/*  w w  w . j av a  2s  .c  o m*/
        public Address getReplyToAddress(Message request, S reply) {
            return new Address(null, replyExchange, replyRoutingKey);
        }

    });
}