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