aboutsummaryrefslogtreecommitdiffstats
path: root/slobrok/src/vespa/slobrok/server/i_monitored_server.h
blob: a66d19ba653d1d09180620181919c475421aaa17 (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

namespace slobrok {

//-----------------------------------------------------------------------------

/**
 * @class IMonitoredServer
 * @brief A server that is monitored by a Monitor object
 *
 * interface that must be implemented by owners of Monitor objects.
 **/
class IMonitoredServer
{
public:
    virtual void notifyDisconnected() = 0; // lost connection to service
    virtual ~IMonitoredServer() {}
};

//-----------------------------------------------------------------------------

} // namespace slobrok