Interface ArtifactResolverStrategy<T>
-
- All Superinterfaces:
ArtifactReferenceResolverStrategy<T,Object>
public interface ArtifactResolverStrategy<T> extends ArtifactReferenceResolverStrategy<T,Object>
There is a new interface responsible with the same responsibility as this one, can be found hereArtifactReferenceResolverStrategyThe interfaceArtifactResolverStrategyis kept for backwards compatibility AArtifactResolverStrategyis used by the Kafka serializer/deserializer to determine theArtifactReferenceunder which the message schemas are located or should be registered in the registry. The default isTopicIdStrategy.- Author:
- Fabian Martinez
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ArtifactReferenceartifactReference(Record<Object> data, ParsedSchema<T> parsedSchema)ArtifactReferenceartifactReference(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 Detail
-
artifactReference
ArtifactReference 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.- 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
default ArtifactReference artifactReference(Record<Object> data, ParsedSchema<T> parsedSchema)
- Specified by:
artifactReferencein interfaceArtifactReferenceResolverStrategy<T,Object>
-
-