blob: 165dd340fbd3c96835f82f9971139729c19d0983 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <memory>
namespace vespalib { class IDestructorCallback; }
namespace proton {
/**
* Interface used to limit the number of outstanding move operations a blockable maintenance job can have.
*/
struct IMoveOperationLimiter {
virtual ~IMoveOperationLimiter() = default;
virtual std::shared_ptr<vespalib::IDestructorCallback> beginOperation() = 0;
virtual size_t numPending() const = 0;
};
}
|