A state machine for connection states. More...
Instance Methods | |
| (instancetype) | - init |
| Initializes a new instance of the FMLiveSwitchConnectionStateMachine class. More... | |
| (int) | - stateToValueWithState: |
| Converts a state to an integer value. More... | |
| (FMLiveSwitchConnectionState) | - valueToState: |
| Converts an integer value to a state. More... | |
Instance Methods inherited from FMLiveSwitchStateMachine | |
| (bool) | - canTransitionWithToState: |
| Determines whether a transition to the specified state is allowed. More... | |
| (FMLiveSwitchPromise< id > *) | - getPromiseWithState:returnValue: |
| Gets a promise, which may be resolved or rejected depending on the current state of this machine. More... | |
| (instancetype) | - initWithInitialState: |
| Initializes a new instance of the FMLiveSwitchStateMachine`1 class. More... | |
| (bool) | - isReachableWithState: |
| Determines whether a transition to a specified state is possible (even via intermediate hops). More... | |
| (long long) | - lastStateMillis |
| Gets the length of time spent in the last state, in milliseconds. More... | |
| (long long) | - lastStateTicks |
| Gets the length of time spent in the last state, in ticks. More... | |
| (T) | - state |
| Gets the state. More... | |
| (int) | - stateToValueWithState: |
| Converts a state to an integer value. More... | |
| (int) | - stateValue |
| Gets the state value. More... | |
| (long long) | - systemTimestamp |
| Gets the system timestamp of the last state transition. More... | |
| (bool) | - transitionWithToState: |
| Transitions to the specified state. More... | |
Class Methods | |
| (FMLiveSwitchConnectionStateMachine *) | + connectionStateMachine |
| Initializes a new instance of the FMLiveSwitchConnectionStateMachine class. More... | |
Class Methods inherited from FMLiveSwitchStateMachine | |
| (FMLiveSwitchStateMachine *) | + stateMachineWithInitialState: |
| Initializes a new instance of the FMLiveSwitchStateMachine`1 class. More... | |
Additional Inherited Members | |
Protected Attributes inherited from FMLiveSwitchStateMachine | |
| __pad0__: NSObject- (void) addTransitionWithFromState:(T)fromState toState:(T)toState | |
A state machine for connection states.
| + (FMLiveSwitchConnectionStateMachine*) connectionStateMachine |
Initializes a new instance of the FMLiveSwitchConnectionStateMachine class.
| - (instancetype) init |
Initializes a new instance of the FMLiveSwitchConnectionStateMachine class.
| - (int) stateToValueWithState: | (FMLiveSwitchConnectionState) | state |
Converts a state to an integer value.
| state | The state. |
| - (FMLiveSwitchConnectionState) valueToState: | (int) | value |
Converts an integer value to a state.
| value | The integer value. |
Implements FMLiveSwitchStateMachine.