Interface KafkaHeaderMapper
- All Known Implementing Classes:
AbstractKafkaHeaderMapper
,DefaultKafkaHeaderMapper
,SimpleKafkaHeaderMapper
public interface KafkaHeaderMapper
Header mapper for Apache Kafka.
- Since:
- 1.3
- Author:
- Gary Russell
-
Method Summary
Modifier and TypeMethodDescriptionvoid
fromHeaders
(MessageHeaders headers, org.apache.kafka.common.header.Headers target) Map from the givenMessageHeaders
to the specified target headers.void
Map from the given native headers to a map of headers for the eventualMessageHeaders
.
-
Method Details
-
fromHeaders
Map from the givenMessageHeaders
to the specified target headers.- Parameters:
headers
- the abstracted MessageHeaders.target
- the native target headers.
-
toHeaders
Map from the given native headers to a map of headers for the eventualMessageHeaders
.- Parameters:
source
- the native headers.target
- the target headers.
-