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

#pragma once

#include "ibucketstatecalculator.h"
#include <memory>

namespace proton {

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

    virtual void notifyClusterStateChanged(const std::shared_ptr<IBucketStateCalculator> &newCalc) = 0;
};

}