aboutsummaryrefslogtreecommitdiffstats
path: root/config/src/vespa/config/subscription/configprovider.h
blob: f898db0f0c7daf237119e66bbb7e302d86223f20 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include <vespa/config/common/configvalue.h>

namespace config {


class ConfigProvider
{
public:
    virtual ~ConfigProvider() { }

    /**
     * Fetches the appropriate ConfigValue.
     *
     * @return the current ConfigValue.
     */
    virtual ConfigValue getConfig() const = 0;

    /**
     * Checks whether or not the config has changed.
     *
     * @return true if changed, false if not.
     */
    virtual bool isChanged() const = 0;
};

} // namespace config