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

org.zodiac.actuate.bootstrap.config.client.ConfigClientHealthInfo Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
package org.zodiac.actuate.bootstrap.config.client;

public class ConfigClientHealthInfo {

    /**
     * Flag to indicate that the config server health indicator should be installed.
     */
    boolean enabled = true;

    /**
     * Time to live for cached result, in milliseconds. Default 300000 (5 min).
     */
    private long timeToLiveMills = 60 * 5 * 1000;

    public boolean isEnabled() {
        return this.enabled;
    }

    public ConfigClientHealthInfo setEnabled(boolean enabled) {
        this.enabled = enabled;
        return this;
    }

    public long getTimeToLiveMills() {
        return this.timeToLiveMills;
    }

    public ConfigClientHealthInfo setTimeToLiveMills(long timeToLiveMills) {
        this.timeToLiveMills = timeToLiveMills;
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy