aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/transactionlog/client_common.h
blob: e79c0e9ccbbc2bf6733498d34c26c505a7c348df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright Yahoo. 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() { }
};

}