120 void rebuild_message();
126 static const std::string& get_host_name();
128 static const std::string& get_app_name();
130 std::unique_ptr<struct DiscoveryReporterImpl> impl_;
~DiscoveryReporter() override
Destructor – sends an offline notification and stops the loop.
void on_end() override
Called from the loop thread just after the last task has been processed.
void add(NodeImpl *node)
Registers a NodeImpl endpoint for periodic reporting.
static DiscoveryReporter * global_get()
Returns the process-global DiscoveryReporter singleton.
size_t get_max_task_count() const override
Returns the maximum queue depth.
void on_begin() override
Called from the loop thread just before the first task is processed.
DiscoveryReporter()
Constructs the reporter and starts its background loop.
uint32_t get_max_elapsed_time() const override
Returns the maximum allowed task execution time in milliseconds.
void remove(NodeImpl *node)
Unregisters a NodeImpl endpoint from periodic reporting.
MessageLoop()
Constructs a MessageLoop with kNormalType queue.
Abstract base for all VLink transport backend node implementations.
定义 node_impl.h:141
Platform-independent macro definitions for the VLink library.
#define VLINK_EXPORT
定义 macros.h:85
#define VLINK_DISALLOW_COPY_AND_ASSIGN(classname)
Deletes the copy constructor and copy-assignment operator of classname.
定义 macros.h:184
Single-threaded event loop with three queue types, timer management and task scheduling.