public interface SubjectNameStrategy
extends org.apache.kafka.common.Configurable
SubjectNameStrategy is used by the serializer to determine
the subject name under which the event record schemas should be registered
in the schema registry. The default is TopicNameStrategy.| 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.
|
default boolean |
usesSchema()
Whether the strategy depends on the schema.
|
default boolean usesSchema()
String subjectName(String topic, boolean isKey, ParsedSchema schema)
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 schema of the record being serialized/deserializedCopyright © 2025 Confluent, Inc.. All rights reserved.