aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/vespa/storage/distributor/operationstarter.h
blob: 21def2eedeb4128af97910c8416e16717a2b4a93 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include <memory>

namespace storage::distributor {

class Operation;

class OperationStarter
{
public:
    using Priority = uint8_t;
    virtual ~OperationStarter() = default;
    virtual bool start(const std::shared_ptr<Operation>& operation, Priority priority) = 0;
};

}