Class RabbitMQMessageConverter
java.lang.Object
io.smallrye.reactive.messaging.rabbitmq.RabbitMQMessageConverter
Utility class which can handle the transformation of a
Message
to an RabbitMQMessageConverter.OutgoingRabbitMQMessage
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Represents an outgoing RabbitMQ message. -
Method Summary
Modifier and TypeMethodDescriptionconvert
(RabbitMQOpenTelemetryInstrumenter instrumenter, org.eclipse.microprofile.reactive.messaging.Message<?> message, String exchange, String defaultRoutingKey, Optional<Long> defaultTtl, boolean isTracingEnabled) Converts the suppliedMessage
to anRabbitMQMessageConverter.OutgoingRabbitMQMessage
.
-
Method Details
-
convert
public static RabbitMQMessageConverter.OutgoingRabbitMQMessage convert(RabbitMQOpenTelemetryInstrumenter instrumenter, org.eclipse.microprofile.reactive.messaging.Message<?> message, String exchange, String defaultRoutingKey, Optional<Long> defaultTtl, boolean isTracingEnabled) Converts the suppliedMessage
to anRabbitMQMessageConverter.OutgoingRabbitMQMessage
.- Parameters:
message
- the source messageexchange
- the destination exchangedefaultRoutingKey
- the fallback routing key to useisTracingEnabled
- whether tracing is enabled- Returns:
- an
RabbitMQMessageConverter.OutgoingRabbitMQMessage
-