All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.apicurio.registry.serde.fallback.FallbackArtifactProvider Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
package io.apicurio.registry.serde.fallback;

import io.apicurio.registry.resolver.strategy.ArtifactReference;

import java.util.Map;

/**
 * Interface for providing a fallback ArtifactReference when the SchemaResolver is not able to find an
 * ArtifactReference in the kafka message
 */
public interface FallbackArtifactProvider {

    default void configure(Map configs, boolean isKey) {
    }

    /**
     * Returns an ArtifactReference that will be used as the fallback to search in the registry for the
     * artifact that will be used to deserialize the kafka message
     * 
     * @param topic
     * @param data
     * @return
     */
    public ArtifactReference get(String topic, byte[] data);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy