aboutsummaryrefslogtreecommitdiffstats
path: root/config/src/vespa/config/common/source.h
blob: d756a6623ae2d87f0dbb6371513603074137b183 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include <memory>

namespace config {

/*
 * Class representing a source from which constructs config requests and request
 * handlers.
 */
class Source {
public:
    virtual void getConfig() = 0;
    virtual void reload(int64_t generation) = 0;
    virtual void close() = 0;

    virtual ~Source() = default;
};

} // namespace common