public interface StateBuilder<S extends Enum<S>,C extends Context,D extends Data>
| Modifier and Type | Method and Description |
|---|---|
State |
build() |
Enum<S> |
getState() |
EventBuildStep<S,C,D> |
transitionTo(S state) |
EventBuildStep<S,C,D> |
transitionToSelf() |
StateBuilder<S,C,D> |
withEnterAction(BiConsumer<C,D> action)
Register an action that will be executed upon entering this state.
|
StateBuilder<S,C,D> |
withExitAction(BiConsumer<C,D> action)
Register an action that will be executed upon exiting this state.
|
StateBuilder<S,C,D> |
withStateTimeout()
Set the maximum time we allow to stay in this state.
|
StateBuilder<S,C,D> withEnterAction(BiConsumer<C,D> action)
StateBuilder<S,C,D> withExitAction(BiConsumer<C,D> action)
StateBuilder<S,C,D> withStateTimeout()
EventBuildStep<S,C,D> transitionToSelf()
EventBuildStep<S,C,D> transitionTo(S state)
State build()
Copyright © 2019. All rights reserved.