fm.liveswitch.ConnectionStateLedger Class Reference

Maintains a ledger of connection state transitions with timestamps. More...

Public Member Functions

 ConnectionStateLedger (String connectionId)
 Initializes a new instance of the ConnectionStateLedger class. More...
 
void recordConnectionState (fm.liveswitch.ConnectionState state)
 Records a new connection state transition with current timestamp. More...
 
String toString ()
 Provides a string representation of all recorded state transitions. More...
 

Detailed Description

Maintains a ledger of connection state transitions with timestamps.

Tracks the history of state changes for a specific connection.

Constructor & Destructor Documentation

◆ ConnectionStateLedger()

fm.liveswitch.ConnectionStateLedger.ConnectionStateLedger ( String  connectionId)

Initializes a new instance of the ConnectionStateLedger class.

Parameters
connectionIdThe unique identifier for the connection to track.

Member Function Documentation

◆ recordConnectionState()

void fm.liveswitch.ConnectionStateLedger.recordConnectionState ( fm.liveswitch.ConnectionState  state)

Records a new connection state transition with current timestamp.

Parameters
stateThe new connection state to record.

◆ toString()

String fm.liveswitch.ConnectionStateLedger.toString ( )

Provides a string representation of all recorded state transitions.

Returns
A formatted string showing all state transitions with timestamps and durations.