Liveliness
A liveliness token can be used to provide the network with information about connectivity to its declarer. When constructed, a PUT sample will be received by liveliness subscribers on intersecting key expressions. A DELETE on the token’s key expression will be received by subscribers if the token is destroyed, or if connectivity between the subscriber and the token’s creator is lost.
Liveliness tokens are declared via Session::liveliness_declare_token. Liveliness subscribers
and queries are also available on the Session class (liveliness_declare_subscriber, liveliness_get).
-
class LivelinessToken : public zenoh::Owned<::z_owned_liveliness_token_t>
A liveliness token that can be used to provide the network with information about connectivity to its declarer.
When constructed, a PUT sample will be received by liveliness subscribers on intersecting key expressions.
A DELETE on the token’s key expression will be received by subscribers if the token is destroyed, or if connectivity between the subscriber and the token’s creator is lost.