blob: e384457599ede5e426d2f73ce8460dd1411bdf82 (
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
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "iconfigcontext.h"
#include "timingvalues.h"
#include "iconfigmanager.h"
#include <vespa/config/subscription/sourcespec.h>
namespace config {
class ConfigContext : public IConfigContext
{
public:
ConfigContext(const SourceSpec & spec = ServerSpec());
ConfigContext(const TimingValues & timingValues, const SourceSpec & spec = ServerSpec());
IConfigManager & getManagerInstance() override;
void reload() override;
private:
TimingValues _timingValues;
int64_t _generation;
std::unique_ptr<IConfigManager> _manager;
};
} // namespace
|