VLink 2.0.0
A high-performance communication middleware
载入中...
搜索中...
未找到
setter_impl.h 文件参考

Abstract base class for all transport-specific setter (field writer) implementations. 更多...

#include "./node_impl.h"
setter_impl.h 的引用(Include)关系图:
此图展示该文件被哪些文件直接或间接地引用了:

浏览该文件的源代码.

 Transport-agnostic base for setter (field writer) node implementations. 更多...

命名空间

详细描述

Abstract base class for all transport-specific setter (field writer) implementations.

SetterImpl is the intermediate layer between the generic Setter<T> template and a concrete transport backend. It inherits from NodeImpl and adds field-setter semantics:

  • Value write via write() – sends the serialised latest value to all registered getters on the same topic.
  • Synchronous notification via sync() – waits for the written value to be acknowledged or propagated, then fires a completion callback.
Field Model Overview
Unlike the event model (publish/subscribe), the field model maintains a single "latest value" per topic. A Setter always overwrites the previous value; a Getter can retrieve the most recent value at any time or be notified when it changes.
注解
Concrete subclasses must implement write(const Bytes&) and sync(SyncCallback&&).