QarSessionLifecycleInfo Struct
One state of a session's lifecycle. More...
Declaration
Included Headers
Public Member Attributes Index
| QarSessionChangeCause | cause |
| bool | has_previous_session |
| QarStructureHeader | header |
| QarSessionId | previous_session_id |
|
The session it moved from; valid only when has_previous_session. More... | |
| const char * | reason |
| QarSessionId | session_id |
| QarSessionLifecycleState | state |
Description
One state of a session's lifecycle.
Read with qar_session_get_lifecycle_state() (initialize it with qar_session_lifecycle_info_default()) or received by a qar_session_subscribe_lifecycle() callback.
Definition at line 2410 of file qar_streaming.h.
Public Member Attributes
cause
|
Why the latest move happened; QAR_SESSION_CHANGE_CAUSE_NONE on a state that is not part of a move.
Definition at line 2416 of file qar_streaming.h.
has_previous_session
|
Set on the CONNECTED (or HUB_UNREACHABLE) state that ends a move. The state stays current until the next change, so the first state of a subscription made after a move, and qar_session_get_lifecycle_state(), still carry it with its cause: compare session_id with the id the app last saw to tell a new move from an old one.
Definition at line 2427 of file qar_streaming.h.
header
|
QAR_STRUCTURE_TYPE_SESSION_LIFECYCLE_INFO
Definition at line 2412 of file qar_streaming.h.
previous_session_id
|
The session it moved from; valid only when has_previous_session.
Definition at line 2421 of file qar_streaming.h.
reason
|
UTF-8 text for logs and the operator, never a secret. Valid only during the callback; NULL from qar_session_get_lifecycle_state().
Definition at line 2430 of file qar_streaming.h.
session_id
|
The session the app is in now: during MIGRATING still the old one, the new one once the move completed. qar_session_get_id() answers the same.
Definition at line 2419 of file qar_streaming.h.
state
|
Definition at line 2413 of file qar_streaming.h.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.2.1 by Doxygen 1.9.8.