- <init>
Creates a state machine with the specified initial state and terminal states.
- addStateChangeListener
Adds a listener to be notified when the state instance changes according to
.equals().
- compareAndSet
Sets the state if the current state .equals() the specified expected state. If
the new state does no
- get
- getStateChange
Gets a future that completes when the state is no longer .equals() to
currentState).
- isTerminalState
- setIf
Sets the state if the current state satisfies the specified predicate. If the
new state does not .eq
- set
Sets the state. If the new state does not .equals() the current state, listeners
and waiters will be
- fireStateChanged
- getStateChangeListeners
- waitForStateChange
Wait for the state to not be .equals() to the specified current state.
- isPossibleStateChange