public class BytesJsonMessageConverter extends StringJsonMessageConverter
Bytes on output, String, Bytes, or byte[] on input.
Used in conjunction with Kafka BytesSerializer/BytesDeserializer. More
efficient than StringJsonMessageConverter because the String/byte[] is
avoided.logger| Constructor and Description |
|---|
BytesJsonMessageConverter() |
BytesJsonMessageConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
convertPayload(org.springframework.messaging.Message<?> message)
Subclasses can convert the payload; by default, it's sent unchanged to Kafka.
|
extractAndConvertValue, getObjectMapper, getTypeMapper, initialRecordHeaders, setTypeMapperfromMessage, setGenerateMessageId, setGenerateTimestamp, setHeaderMapper, toMessagepublic BytesJsonMessageConverter()
public BytesJsonMessageConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
protected java.lang.Object convertPayload(org.springframework.messaging.Message<?> message)
MessagingMessageConverterconvertPayload in class StringJsonMessageConvertermessage - the message.