summaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/server/i_document_subdb_owner.h
blob: e170840e2526c39016a6443659cc7968d536bfc8 (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 Yahoo. 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