Interface StreamMessageConverter
-
- All Superinterfaces:
MessageConverter
- All Known Implementing Classes:
DefaultStreamMessageConverter
public interface StreamMessageConverter extends MessageConverter
Converts betweenMessageandMessage.- Since:
- 2.4
- Author:
- Gary Russell
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description com.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.MessagetoMessage(Object object, StreamMessageProperties messageProperties)-
Methods inherited from interface org.springframework.amqp.support.converter.MessageConverter
toMessage
-
-
-
-
Method Detail
-
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
com.rabbitmq.stream.Message fromMessage(Message message) throws MessageConversionException
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
-
-