blob: 0e86aa74e88b511e01347d85ab14cfeea98c70b5 (
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
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <memory>
#include <cstdint>
namespace proton {
class IDocumentDBReferenceRegistry;
namespace matching { class SessionManager; }
class IDocumentDBOwner
{
public:
using SessionManager = matching::SessionManager;
virtual ~IDocumentDBOwner();
virtual bool isInitializing() const = 0;
virtual uint32_t getDistributionKey() const = 0;
virtual uint32_t getNumThreadsPerSearch() const = 0;
virtual SessionManager & session_manager() = 0;
virtual std::shared_ptr<IDocumentDBReferenceRegistry> getDocumentDBReferenceRegistry() const = 0;
};
} // namespace proton
|