Interface HeadersHandler
- All Known Implementing Classes:
DefaultHeadersHandler
public interface HeadersHandler
Common interface for headers handling when serializing/deserializing kafka records that have
Headers-
Method Summary
Modifier and TypeMethodDescriptiondefault voidio.apicurio.registry.resolver.strategy.ArtifactReferencereadHeaders(org.apache.kafka.common.header.Headers headers) Reads the kafka message headers and returns an ArtifactReference that can contain or not information to identify an Artifact in the registry.voidwriteHeaders(org.apache.kafka.common.header.Headers headers, io.apicurio.registry.resolver.strategy.ArtifactReference reference)
-
Method Details
-
configure
-
writeHeaders
void writeHeaders(org.apache.kafka.common.header.Headers headers, io.apicurio.registry.resolver.strategy.ArtifactReference reference) -
readHeaders
io.apicurio.registry.resolver.strategy.ArtifactReference readHeaders(org.apache.kafka.common.header.Headers headers) Reads the kafka message headers and returns an ArtifactReference that can contain or not information to identify an Artifact in the registry.- Parameters:
headers-- Returns:
- ArtifactReference
-