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

com.jashmore.sqs.extensions.registry.SchemaReferenceExtractor 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;
import org.springframework.cloud.schema.registry.SchemaReference;
import software.amazon.awssdk.services.sqs.model.Message;

@ThreadSafe
@FunctionalInterface
public interface SchemaReferenceExtractor {
    /**
     * Obtain the {@link SchemaReference} from the message to use for determining what schema should be used to deserialize the message.
     *
     * 

This could be obtained by looking at the content type of the {@link Message}, for example the {@link MessageAttributeSchemaReferenceExtractor} * which looks at the message attribute of the message to get the version, etc. * * @param message the message to process * @return the schema reference for this message */ SchemaReference extract(Message message); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy