blob: 34586ca9ee5065b3439d2b60b12945a3391a0201 (
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
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "i_document_db_config_owner.h"
namespace proton {
class DocumentDBDirectoryHolder;
/*
* Abstract class meant to be a base class for DocumentDB where a
* directory holder exists until the document db instance is
* destroyed.
*/
class DocumentDBConfigOwner : public IDocumentDBConfigOwner
{
std::shared_ptr<DocumentDBDirectoryHolder> _holder;
public:
DocumentDBConfigOwner();
~DocumentDBConfigOwner() override;
std::shared_ptr<DocumentDBDirectoryHolder> getDocumentDBDirectoryHolder();
};
} // namespace proton
|