VLink  2.0.0
A high-performance communication middleware
vlink::Status::PublicationMatched Struct Referencefinal

Writer-side event raised when a matching subscriber appears or disappears. More...

#include <status_detail.h>

Inheritance diagram for vlink::Status::PublicationMatched:
Collaboration diagram for vlink::Status::PublicationMatched:

Public Member Functions

Type get_type () const override
 Returns kPublicationMatched. More...
 
std::string get_string () const override
 Returns the literal "PublicationMatched". More...
 

Public Attributes

int32_t total_count {0}
 Cumulative subscribers ever matched. More...
 
int32_t total_count_change {0}
 Delta in total_count since the last notification. More...
 
int32_t current_count {0}
 Subscribers currently matched. More...
 
int32_t current_count_change {0}
 Delta in current_count since the last notification. More...
 
InstanceHandle last_subscription_handle {nullptr}
 Opaque handle of the subscriber that triggered this event. More...
 

Friends

VLINK_EXPORT friend std::ostream & operator<< (std::ostream &ostream, const PublicationMatched &status) noexcept
 Streams the counter fields to ostream. More...
 

Additional Inherited Members

Detailed Description

Writer-side event raised when a matching subscriber appears or disappears.

Provides cumulative and current counts of matched subscribers together with the most recent subscription handle. Negative current_count_change indicates a peer was removed.

Member Function Documentation

◆ get_string()

std::string vlink::Status::PublicationMatched::get_string ( ) const
overridevirtual

Returns the literal "PublicationMatched".

Returns
Event name string.

Implements vlink::Status::Base.

◆ get_type()

Type vlink::Status::PublicationMatched::get_type ( ) const
overridevirtual

Returns kPublicationMatched.

Returns
Status type discriminator.

Implements vlink::Status::Base.

Friends And Related Function Documentation

◆ operator<<

VLINK_EXPORT friend std::ostream& operator<< ( std::ostream &  ostream,
const PublicationMatched status 
)
friend

Streams the counter fields to ostream.

Parameters
ostreamOutput stream.
statusEvent to print.
Returns
Reference to ostream.

Member Data Documentation

◆ current_count

int32_t vlink::Status::PublicationMatched::current_count {0}

Subscribers currently matched.

◆ current_count_change

int32_t vlink::Status::PublicationMatched::current_count_change {0}

Delta in current_count since the last notification.

◆ last_subscription_handle

InstanceHandle vlink::Status::PublicationMatched::last_subscription_handle {nullptr}

Opaque handle of the subscriber that triggered this event.

◆ total_count

int32_t vlink::Status::PublicationMatched::total_count {0}

Cumulative subscribers ever matched.

◆ total_count_change

int32_t vlink::Status::PublicationMatched::total_count_change {0}

Delta in total_count since the last notification.


The documentation for this struct was generated from the following file: