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 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 Details

    • artifactReference

      ArtifactReference artifactReference(String topic, boolean isKey, T schema)
      For a given topic and message, returns the ArtifactReference under 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 ArtifactReference under which the message schemas are located or should be registered
    • artifactReference

      default ArtifactReference artifactReference(Record<Object> data, ParsedSchema<T> parsedSchema)
      Specified by:
      artifactReference in interface ArtifactReferenceResolverStrategy<T,Object>