public class TopicRecordNameStrategy extends RecordNameStrategy
| Constructor and Description |
|---|
TopicRecordNameStrategy() |
| Modifier and Type | Method and Description |
|---|---|
String |
subjectName(String topic,
boolean isKey,
ParsedSchema schema)
For a given topic and message, returns the subject name under which the
schema should be registered in the schema registry.
|
boolean |
usesSchema()
Whether the strategy depends on the schema.
|
configure, getRecordName, getSubjectNamepublic boolean usesSchema()
SubjectNameStrategyusesSchema in class RecordNameStrategypublic String subjectName(String topic, boolean isKey, ParsedSchema schema)
SubjectNameStrategysubjectName in class RecordNameStrategytopic - 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 schema of the record being serialized/deserializedCopyright © 2025 Confluent, Inc.. All rights reserved.