Class ObjectState<S,E>

Type Parameters:
S - the type of state
E - the type of event
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle, State<S,E>, StateMachineReactiveLifecycle
Direct Known Subclasses:
EnumState

public class ObjectState<S,E> extends AbstractSimpleState<S,E>
A State implementation where state and event is object based.
  • Constructor Details

  • Method Details

    • exit

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

      public reactor.core.publisher.Mono<Void> entry(StateContext<S,E> context)
      Description copied from interface: State
      Initiate an entry sequence for the state.
      Specified by:
      entry in interface State<S,E>
      Overrides:
      entry in class AbstractState<S,E>
      Parameters:
      context - the state context
      Returns:
      Mono for completion
    • toString

      public String toString()
      Overrides:
      toString in class AbstractState<S,E>