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())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Monotonically increasing identity of this snapshot. Consumers capture it before a long operation and reject the result if the current value differs.