public interface StreamMessageConverter extends MessageConverter
Message
and
Message
.Modifier and Type | Method and Description |
---|---|
com.rabbitmq.stream.Message |
fromMessage(Message message)
Convert from a Message to a Java object.
|
default Message |
toMessage(Object object,
MessageProperties messageProperties)
Convert a Java object to a Message.
|
Message |
toMessage(Object object,
StreamMessageProperties messageProperties) |
toMessage
Message toMessage(Object object, StreamMessageProperties messageProperties) throws MessageConversionException
MessageConversionException
default Message toMessage(Object object, MessageProperties messageProperties) throws MessageConversionException
MessageConverter
toMessage
in interface MessageConverter
object
- the object to convertmessageProperties
- The message properties.MessageConversionException
- in case of conversion failurecom.rabbitmq.stream.Message fromMessage(Message message) throws MessageConversionException
MessageConverter
fromMessage
in interface MessageConverter
message
- the message to convertMessageConversionException
- in case of conversion failure