A state machine for stream states. More...
Instance Methods | |
| (instancetype) | - init |
| Initializes a new instance of the FMLiveSwitchStreamStateMachine class. More... | |
| (int) | - stateToValueWithState: |
| Converts a state to an integer value. More... | |
| (FMLiveSwitchStreamState) | - 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 | |
| (FMLiveSwitchStreamStateMachine *) | + streamStateMachine |
| Initializes a new instance of the FMLiveSwitchStreamStateMachine 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 stream states.
| - (instancetype) init |
Initializes a new instance of the FMLiveSwitchStreamStateMachine class.
| - (int) stateToValueWithState: | (FMLiveSwitchStreamState) | state |
Converts a state to an integer value.
| state | The state. |
| + (FMLiveSwitchStreamStateMachine*) streamStateMachine |
Initializes a new instance of the FMLiveSwitchStreamStateMachine class.
| - (FMLiveSwitchStreamState) valueToState: | (int) | value |
Converts an integer value to a state.
| value | The integer value. |
Implements FMLiveSwitchStateMachine.