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

com.yahoo.vespa.configserver.flags.FlagsDb Maven / Gradle / Ivy

There is a newer version: 8.444.18
Show newest version
// 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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy