SOLA
Loading...
Searching...
No Matches
subscription_update.h
1// Copyright The SOLA Contributors
2//
3// Licensed under the MIT License.
4// For details on the licensing terms, see the LICENSE file.
5// SPDX-License-Identifier: MIT
6
7#ifndef MINHTON_MESSAGE_SUBSCRIPTION_UPDATE_H_
8#define MINHTON_MESSAGE_SUBSCRIPTION_UPDATE_H_
9
10#include "minhton/algorithms/esearch/node_data.h"
11#include "minhton/message/message.h"
12#include "solanet/serializer/serialize.h"
13
14namespace minhton {
18class MessageSubscriptionUpdate : public MinhtonMessage<MessageSubscriptionUpdate> {
19public:
22 MessageSubscriptionUpdate(MinhtonMessageHeader header, NodeData::Key key, NodeData::Value value);
23
24 NodeData::Key getKey() const;
25 NodeData::Value getValue() const;
26
27 SERIALIZE(header_, key_, value_);
28
29 MessageSubscriptionUpdate() = default;
30
31private:
32 friend MinhtonMessage;
33
36
38 bool validateImpl() const;
39
40 NodeData::Key key_;
41 NodeData::Value value_;
42};
43} // namespace minhton
44
45#endif
Usage: If a node's local data is modified (inserted, updated or removed), it will send a subscription...
Definition subscription_update.h:18
Definition message_header.h:24
Definition message.h:28
Definition minhton_watchdog_ns3.cpp:24