Class RabbitMQMessageConverter
- java.lang.Object
-
- io.smallrye.reactive.messaging.rabbitmq.RabbitMQMessageConverter
-
public class RabbitMQMessageConverter extends Object
Utility class which can handle the transformation of aMessage
to anRabbitMQMessageConverter.OutgoingRabbitMQMessage
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RabbitMQMessageConverter.OutgoingRabbitMQMessage
Represents an outgoing RabbitMQ message.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RabbitMQMessageConverter.OutgoingRabbitMQMessage
convert(Message<?> message, String exchange, String defaultRoutingKey, Optional<Long> defaultTtl, boolean isTracingEnabled, List<String> attributeHeaders)
Converts the suppliedMessage
to anRabbitMQMessageConverter.OutgoingRabbitMQMessage
.
-
-
-
Method Detail
-
convert
public static RabbitMQMessageConverter.OutgoingRabbitMQMessage convert(Message<?> message, String exchange, String defaultRoutingKey, Optional<Long> defaultTtl, boolean isTracingEnabled, List<String> attributeHeaders)
Converts the suppliedMessage
to anRabbitMQMessageConverter.OutgoingRabbitMQMessage
.- Parameters:
message
- the source messageexchange
- the destination exchangedefaultRoutingKey
- the fallback routing key to useisTracingEnabled
- whether tracing is enabledattributeHeaders
- a list (possibly empty) of message header names whose values should be included as span attributes- Returns:
- an
RabbitMQMessageConverter.OutgoingRabbitMQMessage
-
-