aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/vespa/storage/common/i_storage_chain_builder.h
blob: 5276fa350702f1f9a9b7b86c42866fc600468ee4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <memory>

namespace storage {

class StorageLink;

/*
 * Interface class for building a storage chain.
 */
class IStorageChainBuilder
{
public:
    virtual ~IStorageChainBuilder() = default;
    virtual void add(std::unique_ptr<StorageLink> link) = 0;
    virtual std::unique_ptr<StorageLink> build() && = 0;
};

}