Interface ArtifactResolverStrategy<T>
- All Superinterfaces:
ArtifactReferenceResolverStrategy<T,Object>
There is a new interface responsible with the same responsibility as this one, can be found here
ArtifactReferenceResolverStrategy
The interface ArtifactResolverStrategy is kept for backwards compatibility
A ArtifactResolverStrategy is used by the Kafka serializer/deserializer to determine
the ArtifactReference under which the message schemas are located or should be registered
in the registry. The default is TopicIdStrategy.- Author:
- Fabian Martinez
-
Method Summary
Modifier and TypeMethodDescriptiondefault ArtifactReferenceartifactReference(Record<Object> data, ParsedSchema<T> parsedSchema) artifactReference(String topic, boolean isKey, T schema) For a given topic and message, returns theArtifactReferenceunder which the message schemas are located or should be registered in the registry.Methods inherited from interface io.apicurio.registry.resolver.strategy.ArtifactReferenceResolverStrategy
loadSchema
-
Method Details
-
artifactReference
For a given topic and message, returns theArtifactReferenceunder which the message schemas are located or should be registered in the registry.- Parameters:
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/deserialized, can be null if we don't know it beforehand- Returns:
- the
ArtifactReferenceunder which the message schemas are located or should be registered
-
artifactReference
- Specified by:
artifactReferencein interfaceArtifactReferenceResolverStrategy<T,Object>
-