public interface ArtifactIdStrategy<T>
ArtifactIdStrategy is used by the Kafka serializer/deserializer to determine
the artifact id under which the message schemas should be registered
in the registry. The default is TopicIdStrategy.| Modifier and Type | Method and Description |
|---|---|
String |
artifactId(String topic,
boolean isKey,
T schema)
For a given topic and message, returns the artifact id under which the
schema should be registered in the registry.
|
String artifactId(String topic, boolean isKey, T 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 message being serialized/deserializedCopyright © 2020 Red Hat. All rights reserved.