aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/server/ibucketstatechangedhandler.h
blob: b498d4eb1980a4b0c170068492efe73b038dca7f (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/persistence/spi/bucketinfo.h>

namespace document { class BucketId; }

namespace proton {

/**
 * Interface used to notify when bucket state has changed.
 */
class IBucketStateChangedHandler
{
public:
    virtual void notifyBucketStateChanged(const document::BucketId &bucketId,
                                          storage::spi::BucketInfo::ActiveState newState) = 0;

    virtual ~IBucketStateChangedHandler() = default;
};

}