blob: 925c83bea852812350d4b76c0cdb76c8f010495d (
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 Vespa.ai. 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;
};
}
|