public MessageBuilderSupport<T> setReceivedExchange(String receivedExchange) { this.properties.setReceivedExchange(receivedExchange); return this; }
amqpMessageProperties.setReceivedExchange(receivedExchange);
amqpProperties.setPriority(22); amqpProperties.setReceivedDelay(4567); amqpProperties.setReceivedExchange("test.receivedExchange"); amqpProperties.setReceivedRoutingKey("test.receivedRoutingKey"); amqpProperties.setRedelivered(true);
public MessageBuilderSupport<T> setReceivedExchangeIfAbsent(String receivedExchange) { if (this.properties.getReceivedExchange() == null) { this.properties.setReceivedExchange(receivedExchange); } return this; }
@Test public void shouldSetTheOriginalMessageExchangeOnInTheHeaders() { message.getMessageProperties().setReceivedExchange("the.original.exchange"); recoverer = new RepublishMessageRecoverer(amqpTemplate, "error"); recoverer.recover(message, cause); assertEquals("the.original.exchange", message.getMessageProperties().getHeaders().get("x-original-exchange")); }
amqpMessageProperties.setReceivedExchange(receivedExchange);
amqpMessageProperties.setReceivedExchange(receivedExchange);
target.setReceivedExchange(envelope.getExchange()); target.setReceivedRoutingKey(envelope.getRoutingKey()); target.setRedelivered(envelope.isRedeliver());
target.setReceivedExchange(envelope.getExchange()); target.setReceivedRoutingKey(envelope.getRoutingKey()); target.setRedelivered(envelope.isRedeliver());
amqpProperties.setPriority(22); amqpProperties.setReceivedDelay(1234); amqpProperties.setReceivedExchange("test.receivedExchange"); amqpProperties.setReceivedRoutingKey("test.receivedRoutingKey"); amqpProperties.setRedelivered(true);
properties.setMessageId("message-id-1234"); properties.setPriority(9); properties.setReceivedExchange("received-exchange-1234"); properties.setReceivedRoutingKey("received-routing-key-1234"); properties.setRedelivered(true);