
io.apicurio.registry.serde.fallback.FallbackArtifactProvider Maven / Gradle / Ivy
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 - 2025 Weber Informatics LLC | Privacy Policy