Maintains a ledger of connection state transitions with timestamps. More...
Instance Methods | |
(NSString *) | - description |
Provides a string representation of all recorded state transitions. More... | |
(instancetype) | - initWithConnectionId: |
Initializes a new instance of the ConnectionStateLedger class. More... | |
(void) | - recordConnectionState: |
Records a new connection state transition with current timestamp. More... | |
Class Methods | |
(FMLiveSwitchConnectionStateLedger *) | + connectionStateLedgerWithConnectionId: |
Initializes a new instance of the ConnectionStateLedger class. More... | |
Maintains a ledger of connection state transitions with timestamps.
Tracks the history of state changes for a specific connection.
+ (FMLiveSwitchConnectionStateLedger*) connectionStateLedgerWithConnectionId: | (NSString *) | connectionId |
Initializes a new instance of the ConnectionStateLedger class.
connectionId | The unique identifier for the connection to track. |
- (NSString*) description |
Provides a string representation of all recorded state transitions.
- (instancetype) initWithConnectionId: | (NSString *) | connectionId |
Initializes a new instance of the ConnectionStateLedger class.
connectionId | The unique identifier for the connection to track. |
- (void) recordConnectionState: | (FMLiveSwitchConnectionState) | state |
Records a new connection state transition with current timestamp.
state | The new connection state to record. |