|
VLink
2.0.0
A high-performance communication middleware
|
Writer-side event raised when a matching subscriber appears or disappears. More...
#include <status_detail.h>
Public Member Functions | |
| Type | get_type () const override |
Returns kPublicationMatched. More... | |
| std::string | get_string () const override |
Returns the literal "PublicationMatched". More... | |
Public Member Functions inherited from vlink::Status::Base | |
| template<typename T > | |
| std::shared_ptr< T > | as () const |
Safely narrows this event to a concrete Status subclass. 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 | |
Protected Member Functions inherited from vlink::Status::Base | |
| Base () | |
| virtual | ~Base () |
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.
|
overridevirtual |
|
overridevirtual |
|
friend |
Streams the counter fields to ostream.
| ostream | Output stream. |
| status | Event to print. |
ostream. | int32_t vlink::Status::PublicationMatched::current_count {0} |
Subscribers currently matched.
| int32_t vlink::Status::PublicationMatched::current_count_change {0} |
Delta in current_count since the last notification.
| InstanceHandle vlink::Status::PublicationMatched::last_subscription_handle {nullptr} |
Opaque handle of the subscriber that triggered this event.
| int32_t vlink::Status::PublicationMatched::total_count {0} |
Cumulative subscribers ever matched.
| int32_t vlink::Status::PublicationMatched::total_count_change {0} |
Delta in total_count since the last notification.