List of usage examples for org.springframework.amqp.core ReplyToAddressCallback ReplyToAddressCallback
ReplyToAddressCallback
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); } }); }