blob: 00a466bb0517544fbe62064107cccc8dde062aac (
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 Vespa.ai. 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
|