blob: a5ae3f30076651fa4c626d3396e1cab9ae6e3051 (
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
27
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/vespalib/stllike/string.h>
#include <vespa/document/bucket/bucketspace.h>
#include <memory>
namespace proton {
namespace matching { class SessionManager; }
/**
* Interface defining the communication needed with the owner of the
* document sub db.
*/
class IDocumentSubDBOwner
{
public:
using SessionManager = matching::SessionManager;
virtual ~IDocumentSubDBOwner() {}
virtual document::BucketSpace getBucketSpace() const = 0;
virtual vespalib::string getName() const = 0;
virtual uint32_t getDistributionKey() const = 0;
virtual SessionManager & session_manager() = 0;
};
} // namespace proton
|