aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/server/ibucketstatechangedhandler.h
blob: f3252a150b5aed8569c053463f097dc00d868b53 (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 Yahoo. 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;
};

}