aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/vespa/storage/visiting/visitormessagesessionfactory.h
blob: 1b0bfc23f63c4dbc4199390eb2925fc33c5422f6 (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include "visitormessagesession.h"
#include <vespa/documentapi/messagebus/priority.h>

namespace storage {

class Visitor;
class VisitorThread;

struct VisitorMessageSessionFactory {
    using UP = std::unique_ptr<VisitorMessageSessionFactory>;

    virtual ~VisitorMessageSessionFactory() = default;

    virtual VisitorMessageSession::UP createSession(Visitor&, VisitorThread&) = 0;

    virtual documentapi::Priority::Value toDocumentPriority(uint8_t storagePriority) const = 0;
};

} // storage