aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/server/idocumentmovehandler.h
blob: f5ad1cd596f5ab61cc7392c51c294e199a761958 (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 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
{
    virtual void handleMove(MoveOperation &op, std::shared_ptr<vespalib::IDestructorCallback> moveDoneCtx) = 0;
    virtual ~IDocumentMoveHandler() = default;
};

} // namespace proton