aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/server/iclusterstatechangednotifier.h
blob: 27f9bfcd7d935d9eab48f576dac47389b7d6f08b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

namespace proton {

class IClusterStateChangedHandler;

/**
 * Interface used to request notification when cluster state has changed.
 */
class IClusterStateChangedNotifier
{
public:
    virtual ~IClusterStateChangedNotifier() = default;

    virtual void addClusterStateChangedHandler(IClusterStateChangedHandler *handler) = 0;
    virtual void removeClusterStateChangedHandler(IClusterStateChangedHandler *handler) = 0;
};

}