summaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/feedoperation/wipehistoryoperation.h
blob: d036fee033a4593e6db8cdb5bbf678aa44443228 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include "feedoperation.h"

namespace proton {

class WipeHistoryOperation : public FeedOperation {
    int64_t _wipeTimeLimit;

public:
    WipeHistoryOperation();
    WipeHistoryOperation(SerialNum serialNum, int64_t wipeTimeLimit);
    ~WipeHistoryOperation() override {}

    void serialize(vespalib::nbostream &str) const override;
    void deserialize(vespalib::nbostream &str, const document::DocumentTypeRepo &) override;
    vespalib::string toString() const override;
};

} // namespace proton