Class ForkPseudoState<S,E>

java.lang.Object
org.springframework.statemachine.state.AbstractPseudoState<S,E>
org.springframework.statemachine.state.ForkPseudoState<S,E>
Type Parameters:
S - the type of state
E - the type of event
All Implemented Interfaces:
PseudoState<S,E>

public class ForkPseudoState<S,E> extends AbstractPseudoState<S,E>
Fork implementation of a PseudoState.
Author:
Janne Valkealahti
  • Constructor Details

    • ForkPseudoState

      public ForkPseudoState(List<State<S,E>> forks)
  • 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
    • getForks

      public List<State<S,E>> getForks()