Interface StreamMessageConverter
- All Superinterfaces:
MessageConverter
- All Known Implementing Classes:
DefaultStreamMessageConverter
Converts between
Message
and
Message
.- Since:
- 2.4
- Author:
- Gary Russell
-
Method Summary
Modifier and TypeMethodDescriptioncom.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.toMessage
(Object object, StreamMessageProperties messageProperties) Methods inherited from interface org.springframework.amqp.support.converter.MessageConverter
toMessage
-
Method Details
-
toMessage
Message toMessage(Object object, StreamMessageProperties messageProperties) throws MessageConversionException - Throws:
MessageConversionException
-
toMessage
default Message toMessage(Object object, MessageProperties messageProperties) throws MessageConversionException Description copied from interface:MessageConverter
Convert a Java object to a Message.- Specified by:
toMessage
in interfaceMessageConverter
- Parameters:
object
- the object to convertmessageProperties
- The message properties.- Returns:
- the Message
- Throws:
MessageConversionException
- in case of conversion failure
-
fromMessage
Description copied from interface:MessageConverter
Convert from a Message to a Java object.- Specified by:
fromMessage
in interfaceMessageConverter
- Parameters:
message
- the message to convert- Returns:
- the converted Java object
- Throws:
MessageConversionException
- in case of conversion failure
-