
com.configcat.SettingResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of configcat-java-client Show documentation
Show all versions of configcat-java-client Show documentation
Java SDK for ConfigCat, a feature flag, feature toggle, and configuration management service. That lets you launch new features and change your software configuration remotely without actually (re)deploying code. ConfigCat even helps you do controlled roll-outs like canary releases and blue-green deployments.
The newest version!
package com.configcat;
import java.util.HashMap;
import java.util.Map;
/**
* Represents the result of a getSettings() call.
*/
class SettingResult {
private final Map settings;
private final long fetchTime;
public SettingResult(Map settings, long fetchTime) {
this.settings = settings;
this.fetchTime = fetchTime;
}
public Map settings() {
return settings;
}
public long fetchTime() {
return fetchTime;
}
boolean isEmpty() {
return EMPTY.equals(this);
}
public static final SettingResult EMPTY = new SettingResult(new HashMap<>(), Constants.DISTANT_PAST);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy