Class JoinPseudoState<S,E>

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

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

  • 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
    • exit

      public reactor.core.publisher.Mono<Void> exit(StateContext<S,E> context)
      Description copied from interface: PseudoState
      Initiate an exit sequence for the state.
      Specified by:
      exit in interface PseudoState<S,E>
      Overrides:
      exit in class AbstractPseudoState<S,E>
      Parameters:
      context - the context
      Returns:
      mono of completion
    • getJoins

      public List<List<State<S,E>>> getJoins()
      Gets the join states.
      Returns:
      the joins
    • reset

      public void reset(Collection<S> ids)
      Resets join state according to given state ids so that we can continue with correct tracking.
      Parameters:
      ids - the state id's