Interface ReferenceSubjectNameStrategy
- All Superinterfaces:
org.apache.kafka.common.Configurable
- All Known Implementing Classes:
DefaultReferenceSubjectNameStrategy,QualifiedReferenceSubjectNameStrategy
public interface ReferenceSubjectNameStrategy
extends org.apache.kafka.common.Configurable
A
ReferenceSubjectNameStrategy
is used by the serializer to determine the subject name under which the referenced schema
should be registered in the schema registry.
The default is to simply use the reference name as the subject name.-
Method Summary
Modifier and TypeMethodDescriptionsubjectName(String refName, String topic, boolean isKey, ParsedSchema schema) For a given reference name, topic, and message, returns the subject name under which the referenced schema should be registered in the schema registry.Methods inherited from interface org.apache.kafka.common.Configurable
configure
-
Method Details
-
subjectName
For a given reference name, topic, and message, returns the subject name under which the referenced schema should be registered in the schema registry.- Parameters:
refName- The name of the reference.topic- The Kafka topic name to which the message is being published.isKey- True when encoding a message key, false for a message value.schema- The referenced schema.- Returns:
- The subject name under which the referenced schema should be registered.
-