ConnectionLifecycle
data class ConnectionLifecycle(val version: Long = 0, val state: ConnectionState = ConnectionState.Disconnected, val epochs: ConnectionEpochs = ConnectionEpochs())(source)
One atomically published view of canonical connection state and its lifecycle evidence.
Consumers that need to correlate a state with departure or handshake counters must observe this snapshot instead of reading ConnectionState and ConnectionEpochs flows independently.
Constructors
Link copied to clipboard
constructor(version: Long = 0, state: ConnectionState = ConnectionState.Disconnected, epochs: ConnectionEpochs = ConnectionEpochs())