pl.allegro.tech.hermes.common.http.MessageMetadataHeaders 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.http;
public enum MessageMetadataHeaders {
MESSAGE_ID("Hermes-Message-Id"),
BATCH_ID("Hermes-Batch-Id"),
TOPIC_NAME("Hermes-Topic-Name"),
SUBSCRIPTION_NAME("Hermes-Subscription-Name"),
RETRY_COUNT("Hermes-Retry-Count"),
SCHEMA_VERSION("Schema-Version"),
SCHEMA_ID("Schema-Id"),
PARTITION_KEY("Partition-Key");
private final String headerName;
MessageMetadataHeaders(String headerName) {
this.headerName = headerName;
}
public String getName() {
return this.headerName;
}
public String getCamelCaseName() {
return this.headerName.replace("-", "");
}
}