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 state
E - the type of event
All Implemented Interfaces:
PseudoState<S,E>

public class HistoryPseudoState<S,E> extends AbstractPseudoState<S,E>
History implementation of a PseudoState.
  • Constructor Details

    • HistoryPseudoState

      public HistoryPseudoState(PseudoStateKind kind, StateHolder<S,E> containingState)
      Instantiates a new history pseudo state.
      Parameters:
      kind - the kind
      containingState - 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 kind
      defaultState - the default history state
      containingState - the parent containing state
  • Method Details

    • entry

      public reactor.core.publisher.Mono<State<S,E>> entry(StateContext<S,E> context)
      Description copied from interface: PseudoState
      Initiate an entry sequence for the state and return a next state where state machine should go.
      Specified by:
      entry in interface PseudoState<S,E>
      Overrides:
      entry in class AbstractPseudoState<S,E>
      Parameters:
      context - the context
      Returns:
      the next state or null
    • setState

      public void setState(State<S,E> state)
      Sets the current recorded state.
      Parameters:
      state - the state
    • getState

      public State<S,E> getState()
      Gets the current recorded state.
      Returns:
      the current recorded state.