com.yahoo.vespa.configserver.flags.FlagsDb Maven / Gradle / Ivy
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.configserver.flags;
import com.yahoo.vespa.flags.FlagId;
import com.yahoo.vespa.flags.FlagRepository;
import com.yahoo.vespa.flags.json.FlagData;
import java.util.Optional;
/**
* @author hakonhall
*/
public interface FlagsDb extends FlagRepository {
/** Get the String value of the flag. */
Optional getValue(FlagId flagId);
/** Set the String value of the flag. */
void setValue(FlagId flagId, FlagData data);
/** Remove the flag value if it exists. */
void removeValue(FlagId flagId);
}