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

com.jashmore.sqs.extensions.registry.ConsumerSchemaRetriever Maven / Gradle / Ivy

Go to download

API for building a payload parser that has been serialized via the schema registered in the Spring Cloud Schema Registry

There is a newer version: 7.0.0
Show newest version
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