aboutsummaryrefslogtreecommitdiffstats
path: root/messagebus/src/vespa/messagebus/network/iserviceaddress.h
blob: 5b769b215eff5d1e6fc422c57cad7cecbb3b970c (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
24
25
26
27
28
29
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include <memory>

namespace mbus {

/**
 * This interface represents an abstract network service; i.e. somewhere to send messages. An instance of this is
 * retrieved by calling {@link Network#lookup(String)}.
 *
 * @author Simon Thoresen Hult
 * @version $Id$
 */
class IServiceAddress {
public:
    /**
     * Convenience typedefs.
     */
    using UP = std::unique_ptr<IServiceAddress>;

    /**
     * Virtual destructor required for inheritance.
     */
    virtual ~IServiceAddress() { }
};

} // namespace mbus