aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/server/i_feed_handler_owner.h
blob: bd631e2a675bcc6e4a3520c270143926f1fa5120 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vespa/searchlib/common/serialnum.h>

namespace proton {

/**
 * Interface defining the communication needed with the owner of the
 * feed handler.
 */
struct IFeedHandlerOwner {
    virtual ~IFeedHandlerOwner() {}
    virtual void onTransactionLogReplayDone() = 0;
    virtual void enterRedoReprocessState() = 0;
    virtual void onPerformPrune(search::SerialNum flushedSerial) = 0;
    virtual bool getAllowPrune() const = 0;
};

} // namespace proton