30 bool insert(Key key, NodeData::ValueTimestampAndType value_timestamp_and_type)
override;
31 bool update(Key key, NodeData::ValueTimestampAndType value_timestamp_and_type)
override;
32 void remove(Key key)
override;
34 void addSubscriptionOrderKey(NodeData::Key key);
35 void removeSubscriptionOrderKey(NodeData::Key key);
36 std::vector<NodeData::Key> getSubscriptionOrderKeys()
const;
38 std::queue<uint64_t> getUpdateTimestamps(
const NodeData::Key &key);
40 bool isKeySubscribed(NodeData::Key key);
42 bool isValueUpToDate(
const NodeData::Key &key, uint64_t validity_threshold_timestamp)
override;
44 uint8_t getTimestampStorageLimit()
const;
46 bool isLocal()
const override;
52 std::vector<NodeData::Key> subscription_ordered_keys_;
55 std::unordered_map<NodeData::Key, std::queue<uint64_t>> update_timestamps_;
58 uint8_t timestamp_storage_limit_ = 5;