public class DefaultReferenceSubjectNameStrategy extends Object implements ReferenceSubjectNameStrategy
ReferenceSubjectNameStrategy:
simply uses the reference name as the subject name.| Constructor and Description |
|---|
DefaultReferenceSubjectNameStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Map<String,?> config) |
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.
|
public void configure(Map<String,?> config)
configure in interface org.apache.kafka.common.Configurablepublic String subjectName(String refName, String topic, boolean isKey, ParsedSchema schema)
ReferenceSubjectNameStrategysubjectName in interface ReferenceSubjectNameStrategyrefName - 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.