aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/vespa/storage/persistence/merge_bucket_info_syncer.h
blob: df43fb72ba1dbde57ee26ba662651f7536027f6e (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 <memory>

namespace storage::spi { class Bucket; }

namespace storage {

class ApplyBucketDiffState;

/*
 * Interface class for syncing bucket info during merge.
 */
class MergeBucketInfoSyncer {
public:
    virtual ~MergeBucketInfoSyncer() = default;
    virtual void sync_bucket_info(const spi::Bucket& bucket) const = 0;
    virtual void schedule_delayed_delete(std::unique_ptr<ApplyBucketDiffState> state) const = 0;
};

}