diff --git a/build.gradle b/build.gradle index c3dd5919ed..e1f549835c 100644 --- a/build.gradle +++ b/build.gradle @@ -130,7 +130,7 @@ subprojects { subproject -> tomcatVersion = "8.0.30" smack3Version = '3.2.1' smackVersion = '4.1.5' - springAmqpVersion = project.hasProperty('springAmqpVersion') ? project.springAmqpVersion : '1.5.2.RELEASE' + springAmqpVersion = project.hasProperty('springAmqpVersion') ? project.springAmqpVersion : '1.6.0.M1' // springCloudClusterVersion = '1.0.0.BUILD-SNAPSHOT' springDataJpaVersion = '1.8.2.RELEASE' springDataMongoVersion = '1.7.2.RELEASE' diff --git a/spring-integration-amqp/src/main/java/org/springframework/integration/amqp/support/DefaultAmqpHeaderMapper.java b/spring-integration-amqp/src/main/java/org/springframework/integration/amqp/support/DefaultAmqpHeaderMapper.java index 2c4c797d8b..0fa2b34d7b 100644 --- a/spring-integration-amqp/src/main/java/org/springframework/integration/amqp/support/DefaultAmqpHeaderMapper.java +++ b/spring-integration-amqp/src/main/java/org/springframework/integration/amqp/support/DefaultAmqpHeaderMapper.java @@ -70,11 +70,13 @@ public class DefaultAmqpHeaderMapper extends AbstractHeaderMapper 0) { headers.put(IntegrationMessageHeaderAccessor.PRIORITY, priority); } + Integer receivedDelay = amqpMessageProperties.getReceivedDelay(); + if (receivedDelay != null) { + headers.put(AmqpHeaders.RECEIVED_DELAY, receivedDelay); + } String receivedExchange = amqpMessageProperties.getReceivedExchange(); if (StringUtils.hasText(receivedExchange)) { headers.put(AmqpHeaders.RECEIVED_EXCHANGE, receivedExchange); @@ -253,6 +259,10 @@ public class DefaultAmqpHeaderMapper extends AbstractHeaderMapper> note for more information. -==== TCP Changes +==== TCP/UDP Changes A new `TcpConnectionServerListeningEvent` is emitted when a server connection factory is started. See <> for more information. @@ -74,10 +74,18 @@ See <> for more information. ==== AMQP Changes +===== Content Type Message Converter + The outbound endpoints now support a `RabbitTemplate` configured with a `ContentTypeDelegatingMessageConverter` such that the converter can be chosen based on the message content type. See <> for more information. +===== Headers for Delayed Message Handling + +Spring AMQP 1.6 adds support for +https://www.rabbitmq.com/blog/2015/04/16/scheduling-messages-with-rabbitmq/[Delayed Message Exchanges]. +Header mapping now supports the headers (`amqp_delay` and `amqp_receivedDelay`) used by this feature. + ==== Redis Changes ===== List Push/Pop Direction