aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/server/i_inc_serial_num.h
blob: 7a9e98cda2247dc8aa61c47a13ed212e511f7c78 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright Yahoo. 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 {

/**
 * A simple interface for increasing a serial number and getting the new
 * serial number.
 **/
class IIncSerialNum {
public:
    virtual ~IIncSerialNum() = default;
    virtual search::SerialNum inc_serial_num() = 0;
};

}