|
VLink
2.0.0
A high-performance communication middleware
|
Reader-side event raised when the liveliness of a matched publisher changes. More...
#include <status_detail.h>
Public Member Functions | |
| Type | get_type () const override |
Returns kLivelinessChanged. More... | |
| std::string | get_string () const override |
Returns the literal "LivelinessChanged". 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 | alive_count {0} |
| Matched publishers currently considered alive. More... | |
| int32_t | not_alive_count {0} |
| Matched publishers currently considered not alive. More... | |
| int32_t | alive_count_change {0} |
Delta in alive_count since the last notification. More... | |
| int32_t | not_alive_count_change {0} |
Delta in not_alive_count since the last notification. More... | |
| InstanceHandle | last_publication_handle {nullptr} |
| Opaque handle of the publisher whose state changed. More... | |
Friends | |
| VLINK_EXPORT friend std::ostream & | operator<< (std::ostream &ostream, const LivelinessChanged &status) noexcept |
Streams the counter fields to ostream. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from vlink::Status::Base | |
| Base () | |
| virtual | ~Base () |
Reader-side event raised when the liveliness of a matched publisher changes.
The alive_count and not_alive_count fields hold the current totals; the matching *_change fields hold the delta since the last notification.
|
overridevirtual |
|
overridevirtual |
|
friend |
Streams the counter fields to ostream.
| ostream | Output stream. |
| status | Event to print. |
ostream. | int32_t vlink::Status::LivelinessChanged::alive_count {0} |
Matched publishers currently considered alive.
| int32_t vlink::Status::LivelinessChanged::alive_count_change {0} |
Delta in alive_count since the last notification.
| InstanceHandle vlink::Status::LivelinessChanged::last_publication_handle {nullptr} |
Opaque handle of the publisher whose state changed.
| int32_t vlink::Status::LivelinessChanged::not_alive_count {0} |
Matched publishers currently considered not alive.
| int32_t vlink::Status::LivelinessChanged::not_alive_count_change {0} |
Delta in not_alive_count since the last notification.