com.jashmore.sqs.extensions.registry.ConsumerSchemaRetriever Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-cloud-schema-registry-extension-api Show documentation
Show all versions of spring-cloud-schema-registry-extension-api Show documentation
API for building a payload parser that has been serialized via the schema registered in the Spring Cloud Schema Registry
package com.jashmore.sqs.extensions.registry;
import com.jashmore.documentation.annotations.ThreadSafe;
/**
* Retriever used to get the schema representation of this class that will deserialize the message payload.
*
* @param the type for the schema, for example an Avro schema
*/
@ThreadSafe
@FunctionalInterface
public interface ConsumerSchemaRetriever {
/**
* Get the schema representation for the provided class.
*
* This will be used by the {@link MessagePayloadDeserializer} to determine how it can transform the message
* that may be have been produced with a different version of the schema.
*
* @param clazz the class of the object to get the schema for
* @return the schema definition for this class
*/
T getSchema(Class> clazz);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy