SubjectNameStrategy
instead.@Deprecated 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 |
getSubjectName(String topic,
boolean isKey,
Object value)
Deprecated.
For a given topic and message, returns the subject name under which the
schema should be registered in the schema registry.
|
String getSubjectName(String topic, boolean isKey, Object value)
topic - The Kafka topic name to which the message is being published.isKey - True when encoding a message key, false for a message value.value - The value to be published in the message.Copyright © 2025 Confluent, Inc.. All rights reserved.