aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/transactionlog/client_common.h
blob: 4198c3984a3c8d220c530e57c39722e08fc9d160 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

namespace search::transactionlog { class Packet; }
namespace search::transactionlog::client {

class RPC
{
public:
enum Result { OK, FULL, ERROR };
};

class Callback {
public:
    virtual ~Callback() = default;
    virtual RPC::Result receive(const Packet & packet) = 0;
    virtual void eof() { }
};

}