aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/vespa/storage/common/storage_chain_builder.h
blob: 9d969ab354d3aa22c08abb217684d2e2cfd7b38d (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 "i_storage_chain_builder.h"

namespace storage {

/**
 * Class for building a storage chain.
 */
class StorageChainBuilder : public IStorageChainBuilder
{
protected:
    std::unique_ptr<StorageLink> _top;
public:
    StorageChainBuilder();
    ~StorageChainBuilder() override;
    void add(std::unique_ptr<StorageLink> link) override;
    std::unique_ptr<StorageLink> build() && override;
};

}