aboutsummaryrefslogtreecommitdiffstats
path: root/flags/src/main/java/com/yahoo/vespa/flags/FlagSource.java
blob: eed39abb52a3ab02b9e902e08c9fc0f7f32095a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.flags;

import java.util.Optional;

/**
 * A source of raw flag values that can be converted to typed flag values elsewhere.
 *
 * @author hakonhall
 */
public interface FlagSource {

    /** Returns the raw flag for the given vector (specifying hostname, application id, etc). */
    Optional<RawFlag> fetch(FlagId id, FetchVector vector);

}