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

pl.allegro.tech.hermes.consumers.config.MetricsProperties Maven / Gradle / Ivy

There is a newer version: 2.10.0
Show newest version
package pl.allegro.tech.hermes.consumers.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.time.Duration;

@ConfigurationProperties(prefix = "consumer.metrics.metric-registry")
public class MetricsProperties {

    private Duration counterExpireAfterAccess = Duration.ofHours(72);

    public Duration getCounterExpireAfterAccess() {
        return counterExpireAfterAccess;
    }

    public void setCounterExpireAfterAccess(Duration counterExpireAfterAccess) {
        this.counterExpireAfterAccess = counterExpireAfterAccess;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy