pl.allegro.tech.hermes.common.message.wrapper.SchemaAwarePayload 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.
package pl.allegro.tech.hermes.common.message.wrapper;
import pl.allegro.tech.hermes.schema.SchemaId;
public class SchemaAwarePayload {
private final byte[] payload;
private final SchemaId schemaId;
public SchemaAwarePayload(byte[] payload, SchemaId schemaId) {
this.payload = payload;
this.schemaId = schemaId;
}
public byte[] getPayload() {
return payload;
}
public SchemaId getSchemaId() {
return schemaId;
}
}