aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/server/i_document_db_config_owner.h
blob: 98a77cdf5108eee44eed35ce6cf32f63cbdfc754 (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
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <memory>

namespace document { class BucketSpace; }

namespace proton {

class DocumentDBConfig;

/*
 * Interface class defining reconfigure method for a document db.
 */
class IDocumentDBConfigOwner
{
public:
    virtual ~IDocumentDBConfigOwner() = default;
    virtual document::BucketSpace getBucketSpace() const = 0;
    virtual void reconfigure(std::shared_ptr<DocumentDBConfig> config) = 0;
};

} // namespace proton