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

pl.allegro.tech.hermes.common.http.MessageMetadataHeaders Maven / Gradle / Ivy

There is a newer version: 2.7.0
Show newest version
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("-", "");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy