Maintains a ledger of connection state transitions with timestamps. More...
Public Member Functions | |
ConnectionStateLedger (String connectionId, boolean client, String connectionType, String clientId, fm.liveswitch.MediaProtocol mediaProtocol) | |
Initializes a new instance of the ConnectionStateLedger class. More... | |
void | recordAnswer (fm.liveswitch.ConnectionState state, boolean sent, boolean renegotiation) |
Records an offer. More... | |
void | recordConnectionState (fm.liveswitch.ConnectionState state) |
Records a new connection state transition with current timestamp. More... | |
void | recordError (fm.liveswitch.ConnectionState state, String error) |
Records an error. More... | |
void | recordMediaIntent (fm.liveswitch.ConnectionState state, boolean sent) |
Records a media intent with current timestamp. More... | |
void | recordOffer (fm.liveswitch.ConnectionState state, boolean sent, boolean renegotiation) |
Records an offer. More... | |
String | toString () |
Provides a string representation of all recorded state transitions. More... | |
Maintains a ledger of connection state transitions with timestamps.
Tracks the history of state changes for a specific connection.
fm.liveswitch.ConnectionStateLedger.ConnectionStateLedger | ( | String | connectionId, |
boolean | client, | ||
String | connectionType, | ||
String | clientId, | ||
fm.liveswitch.MediaProtocol | mediaProtocol | ||
) |
Initializes a new instance of the ConnectionStateLedger class.
connectionId | The unique identifier for the connection to track. |
client | Indicates whether this ledger is for the client rather than for a server. |
connectionType | Indicates the connection type. |
clientId | The unique identifier for the client. |
mediaProtocol | The mediaprotocol of this connection. |
void fm.liveswitch.ConnectionStateLedger.recordAnswer | ( | fm.liveswitch.ConnectionState | state, |
boolean | sent, | ||
boolean | renegotiation | ||
) |
Records an offer.
void fm.liveswitch.ConnectionStateLedger.recordConnectionState | ( | fm.liveswitch.ConnectionState | state | ) |
Records a new connection state transition with current timestamp.
state | The new connection state to record. |
void fm.liveswitch.ConnectionStateLedger.recordError | ( | fm.liveswitch.ConnectionState | state, |
String | error | ||
) |
Records an error.
void fm.liveswitch.ConnectionStateLedger.recordMediaIntent | ( | fm.liveswitch.ConnectionState | state, |
boolean | sent | ||
) |
Records a media intent with current timestamp.
void fm.liveswitch.ConnectionStateLedger.recordOffer | ( | fm.liveswitch.ConnectionState | state, |
boolean | sent, | ||
boolean | renegotiation | ||
) |
Records an offer.
String fm.liveswitch.ConnectionStateLedger.toString | ( | ) |
Provides a string representation of all recorded state transitions.