aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/reference/pending_gid_to_lid_changes.h
blob: 07c8b983cd4ee88a62b5d789073e8b0f2fe4b1ae (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
25
26
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include "i_pending_gid_to_lid_changes.h"
#include "pending_gid_to_lid_change.h"
#include <vector>

namespace proton {

class GidToLidChangeHandler;

/*
 * Class for a vector of gid to lid changes awaiting a force commit.
 */
class PendingGidToLidChanges : public IPendingGidToLidChanges
{
    GidToLidChangeHandler&             _handler;
    std::vector<PendingGidToLidChange> _pending_changes;
public:
    PendingGidToLidChanges(GidToLidChangeHandler& handler, std::vector<PendingGidToLidChange> &&pending_changes);
    ~PendingGidToLidChanges() override;
    void notify_done() override;
};

}