blob: 98bcc7c126558b9ea16151e37e929e6268957ce0 (
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
24
|
// 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 {
class MoveOperation;
/**
* Interface used by DocumentBucketMover to handle the moving of a single document.
*/
struct IDocumentMoveHandler
{
enum class MoveResult { SUCCESS, FAILURE};
[[nodiscard]] virtual MoveResult handleMove(MoveOperation &op, std::shared_ptr<vespalib::IDestructorCallback> moveDoneCtx) = 0;
virtual ~IDocumentMoveHandler() = default;
};
} // namespace proton
|