pl.allegro.tech.hermes.consumers.config.ConsumerHTTPHeadersPropagationAsKafkaHeadersProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hermes-consumers Show documentation
Show all versions of hermes-consumers Show documentation
Fast and reliable message broker built on top of Kafka.
package pl.allegro.tech.hermes.consumers.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import pl.allegro.tech.hermes.common.kafka.HTTPHeadersPropagationAsKafkaHeadersProperties;
@ConfigurationProperties(prefix = "consumer.http.headers.propagation-as-kafka-headers")
public class ConsumerHTTPHeadersPropagationAsKafkaHeadersProperties implements HTTPHeadersPropagationAsKafkaHeadersProperties {
public boolean enabled = true;
public String prefix = "h-";
@Override
public boolean isEnabled() {
return enabled;
}
@Override
public String getPrefix() {
return prefix;
}
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
public void setPrefix(String prefix) {
this.prefix = prefix;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy