Class HistoryPseudoState<S,E>
java.lang.Object
org.springframework.statemachine.state.AbstractPseudoState<S,E>
org.springframework.statemachine.state.HistoryPseudoState<S,E>
- Type Parameters:
S- the type of stateE- the type of event
- All Implemented Interfaces:
PseudoState<S,E>
History implementation of a
PseudoState.- Author:
- Janne Valkealahti
-
Constructor Summary
ConstructorsConstructorDescriptionHistoryPseudoState(PseudoStateKind kind, StateHolder<S, E> containingState) Instantiates a new history pseudo state.HistoryPseudoState(PseudoStateKind kind, StateHolder<S, E> defaultState, StateHolder<S, E> containingState) Instantiates a new history pseudo state. -
Method Summary
Modifier and TypeMethodDescriptionentry(StateContext<S, E> context) Initiate an entry sequence for the state and return a next state where state machine should go.getState()Gets the current recorded state.voidSets the current recorded state.Methods inherited from class org.springframework.statemachine.state.AbstractPseudoState
addPseudoStateListener, exit, getKind, notifyContext, setPseudoStateListeners
-
Constructor Details
-
HistoryPseudoState
Instantiates a new history pseudo state.- Parameters:
kind- the kindcontainingState- the parent containing state
-
HistoryPseudoState
public HistoryPseudoState(PseudoStateKind kind, StateHolder<S, E> defaultState, StateHolder<S, E> containingState) Instantiates a new history pseudo state.- Parameters:
kind- the kinddefaultState- the default history statecontainingState- the parent containing state
-
-
Method Details
-
entry
Description copied from interface:PseudoStateInitiate an entry sequence for the state and return a next state where state machine should go.- Specified by:
entryin interfacePseudoState<S,E> - Overrides:
entryin classAbstractPseudoState<S,E> - Parameters:
context- the context- Returns:
- the next state or null
-
setState
Sets the current recorded state.- Parameters:
state- the state
-
getState
Gets the current recorded state.- Returns:
- the current recorded state.
-