aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/server/document_db_directory_holder.h
blob: c845132292429ff792c5d03e740391b8e1ee98e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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 holding onto a document db directory.
 */
class DocumentDBDirectoryHolder
{
public:
    DocumentDBDirectoryHolder();
    ~DocumentDBDirectoryHolder();
    static void waitUntilDestroyed(const std::weak_ptr<DocumentDBDirectoryHolder> &holder);
};

} // namespace proton