Struct LivelinessData
Defined in File LivelinessData.h
Struct Documentation
-
struct LivelinessData
A struct keeping relevant liveliness information of a writer.
Public Types
Public Functions
-
inline LivelinessData(GUID_t guid_in, LivelinessQosPolicyKind kind_in, Duration_t lease_duration_in)
Constructor.
- Parameters
guid_in – GUID of the writer
kind_in – Liveliness kind
lease_duration_in – Liveliness lease duration
-
inline LivelinessData()
-
inline ~LivelinessData()
-
inline bool operator==(const LivelinessData &other) const
Equality operator.
- Parameters
other – Liveliness data to compare to
- Returns
True if equal
-
inline bool operator!=(const LivelinessData &other) const
Inequality operator.
- Parameters
other – Liveliness data to compare to
- Returns
True if different
Public Members
-
LivelinessQosPolicyKind kind
Writer liveliness kind.
-
Duration_t lease_duration
The lease duration.
-
unsigned int count = 1
The number of times the writer is being counted.
-
WriterStatus status
The writer status.
-
std::chrono::steady_clock::time_point time
The time when the writer will lose liveliness.
-
inline LivelinessData(GUID_t guid_in, LivelinessQosPolicyKind kind_in, Duration_t lease_duration_in)