Package io.zenoh.liveliness
Class LivelinessToken
-
- All Implemented Interfaces:
-
io.zenoh.session.SessionDeclaration
,java.lang.AutoCloseable
public final class LivelinessToken implements SessionDeclaration, AutoCloseable
A token whose liveliness is tied to the Zenoh io.zenoh.Session.
A declared liveliness token will be seen as alive by any other Zenoh application in the system that monitors it while the liveliness token is not undeclared or dropped, while the Zenoh application that declared it is alive (didn't stop or crashed) and while the Zenoh application that declared the token has Zenoh connectivity with the Zenoh application that monitors it.
Liveliness tokens are automatically undeclared when dropped.