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.MessagefromMessage(Message message) Convert from a Message to a Java object.default MessagetoMessage(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:MessageConverterConvert a Java object to a Message.- Specified by:
toMessagein 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:MessageConverterConvert from a Message to a Java object.- Specified by:
fromMessagein interfaceMessageConverter- Parameters:
message- the message to convert- Returns:
- the converted Java object
- Throws:
MessageConversionException- in case of conversion failure
-