cloud.eppo.ufc.dto.FlagConfigResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-common-jvm Show documentation
Show all versions of sdk-common-jvm Show documentation
Eppo SDK for JVM shared library
package cloud.eppo.ufc.dto;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public class FlagConfigResponse {
private final Map flags;
private final Map banditReferences;
private final Format format;
public FlagConfigResponse(
Map flags,
Map banditReferences,
Format dataFormat) {
this.flags = flags;
this.banditReferences = banditReferences;
format = dataFormat;
}
public FlagConfigResponse(
Map flags, Map banditReferences) {
this(flags, banditReferences, Format.SERVER);
}
public FlagConfigResponse() {
this(new ConcurrentHashMap<>(), new ConcurrentHashMap<>(), Format.SERVER);
}
public Map getFlags() {
return this.flags;
}
public Map getBanditReferences() {
return this.banditReferences;
}
public Format getFormat() {
return format;
}
public enum Format {
SERVER,
CLIENT
}
}