| Package | Description |
|---|---|
| com.hotels.styx.common |
| Modifier and Type | Method and Description |
|---|---|
StateMachine.Builder<S> |
StateMachine.Builder.initialState(S initialState)
Sets the state that the state-machine should start in.
|
<E> StateMachine.Builder<S> |
StateMachine.Builder.onInappropriateEvent(BiFunction<S,E,S> mapper)
Determines how to handle an inappropriate event.
|
StateMachine.Builder<S> |
StateMachine.Builder.onStateChange(StateChangeListener<S> stateChangeListener)
Add state-change-listener to be informed about state changes, including due to inappropriate events.
|
<E> StateMachine.Builder<S> |
StateMachine.Builder.transition(S state,
Class<E> eventClass,
Function<E,S> mapper)
Associates a state and event type with a function that returns a new state and possibly side-effects.
|
Copyright © 2013–2018 Hotels.com. All rights reserved.