@FunctionalInterface public interface InboundMessageMapper<T>
Message
.Modifier and Type | Method and Description |
---|---|
default Message<?> |
toMessage(T object)
Convert a provided object to the
Message . |
Message<?> |
toMessage(T object,
Map<String,Object> headers)
Convert a provided object to the
Message
and supply with headers if necessary and provided. |
@Nullable default Message<?> toMessage(T object)
Message
.object
- the object for message payload or some other conversion logic@Nullable Message<?> toMessage(T object, @Nullable Map<String,Object> headers)
Message
and supply with headers if necessary and provided.object
- the object for message payload or some other conversion logicheaders
- additional headers for building message. Can be null