pl.allegro.tech.hermes.common.message.wrapper.MessageContentWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hermes-common Show documentation
Show all versions of hermes-common Show documentation
Fast and reliable message broker built on top of Kafka.
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);
}