blob: cc5165036b4cd318c680f4ef991f8b31b771f7d2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/vespalib/stllike/string.h>
#include <vespa/vespalib/util/time.h>
class FRT_RPCRequest;
class FRT_IRequestWait;
namespace config {
class Connection {
public:
using duration = vespalib::duration;
virtual FRT_RPCRequest * allocRPCRequest() = 0;
virtual void setError(int errorCode) = 0;
virtual void invoke(FRT_RPCRequest * req, duration timeout, FRT_IRequestWait * waiter) = 0;
virtual const vespalib::string & getAddress() const = 0;
virtual ~Connection() = default;
};
}
|