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

org.zodic.kubernetes.confcenter.reload.ConfigReloadInfo Maven / Gradle / Ivy

package org.zodic.kubernetes.confcenter.reload;

import java.time.Duration;

public class ConfigReloadInfo {

    /**
     * Enables the Kubernetes configuration reload on change.
     */
    private boolean enabled = false;

    /**
     * Enables monitoring on config maps to detect changes.
     */
    private boolean monitoringConfigMaps = true;

    /**
     * Enables monitoring on secrets to detect changes.
     */
    private boolean monitoringSecrets = false;

    /**
     * Sets the reload strategy for Kubernetes configuration reload on change.
     */
    private ConfigReloadStrategy strategy = ConfigReloadStrategy.REFRESH;

    /**
     * Sets the detection mode for Kubernetes configuration reload.
     */
    private ConfigReloadDetectionMode mode = ConfigReloadDetectionMode.EVENT;

    /**
     * Sets the polling period to use when the detection mode is POLLING.
     */
    private Duration period = Duration.ofMillis(15000L);

    public ConfigReloadInfo() {}

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

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

    public boolean isMonitoringConfigMaps() {
        return this.monitoringConfigMaps;
    }

    public void setMonitoringConfigMaps(boolean monitoringConfigMaps) {
        this.monitoringConfigMaps = monitoringConfigMaps;
    }

    public boolean isMonitoringSecrets() {
        return this.monitoringSecrets;
    }

    public void setMonitoringSecrets(boolean monitoringSecrets) {
        this.monitoringSecrets = monitoringSecrets;
    }

    public ConfigReloadStrategy getStrategy() {
        return this.strategy;
    }

    public void setStrategy(ConfigReloadStrategy strategy) {
        this.strategy = strategy;
    }

    public ConfigReloadDetectionMode getMode() {
        return this.mode;
    }

    public void setMode(ConfigReloadDetectionMode mode) {
        this.mode = mode;
    }

    public Duration getPeriod() {
        return this.period;
    }

    public void setPeriod(Duration period) {
        this.period = period;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy