public interface ReferenceSubjectNameStrategy
extends org.apache.kafka.common.Configurable
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.| Modifier and Type | Method and Description |
|---|---|
String |
subjectName(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.
|
String subjectName(String refName, String topic, boolean isKey, ParsedSchema schema)
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.Copyright © 2025 Confluent, Inc.. All rights reserved.