Class AdapterUtils
java.lang.Object
org.springframework.kafka.listener.adapter.AdapterUtils
Utilities for listener adapters.
- Since:
- 2.5
- Author:
- Gary Russell
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParserContextParser context for runtime SpEL using ! as the template prefix. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConsumerRecordMetadataBuild aConsumerRecordMetadatafrom data which must be aConsumerRecord.static ObjectBuild aConsumerRecordMetadatafrom the firstConsumerRecordin data, if any.static StringReturn the default expression when no SendTo value is present.
-
Field Details
-
PARSER_CONTEXT
Parser context for runtime SpEL using ! as the template prefix.- Since:
- 2.2.15
-
-
Method Details
-
buildConsumerRecordMetadataFromArray
Build aConsumerRecordMetadatafrom the firstConsumerRecordin data, if any.- Parameters:
data- the data array.- Returns:
- the metadata or null if data does not contain a
ConsumerRecord.
-
buildConsumerRecordMetadata
Build aConsumerRecordMetadatafrom data which must be aConsumerRecord.- Parameters:
data- the record.- Returns:
- the metadata or null if data is not a
ConsumerRecord.
-
getDefaultReplyTopicExpression
Return the default expression when no SendTo value is present.- Returns:
- the expression.
- Since:
- 2.2.15
-