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

pl.allegro.tech.hermes.common.message.wrapper.MessageContentWrapper Maven / Gradle / Ivy

The newest version!
package pl.allegro.tech.hermes.common.message.wrapper;

import org.apache.avro.Schema;
import pl.allegro.tech.hermes.api.Topic;
import pl.allegro.tech.hermes.schema.CompiledSchema;

import java.util.Map;

public interface MessageContentWrapper {

    UnwrappedMessageContent unwrapAvro(byte[] data, Topic topic, Integer schemaId, Integer schemaVersion);

    UnwrappedMessageContent unwrapJson(byte[] data);

    byte[] wrapAvro(byte[] data,
                    String id,
                    long timestamp,
                    Topic topic,
                    CompiledSchema schema,
                    Map externalMetadata);

    byte[] wrapJson(byte[] data, String id, long timestamp, Map externalMetadata);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy