Class BootStateMachineMonitor<S,E>

java.lang.Object
org.springframework.statemachine.monitor.AbstractStateMachineMonitor<S,E>
org.springframework.statemachine.boot.support.BootStateMachineMonitor<S,E>
Type Parameters:
S - the type of state
E - the type of event
All Implemented Interfaces:
org.springframework.statemachine.monitor.StateMachineMonitor<S,E>

public class BootStateMachineMonitor<S,E> extends org.springframework.statemachine.monitor.AbstractStateMachineMonitor<S,E>
Implementation of a StateMachineMonitor which converts monitoring events and bridges those into supported format handled by Spring Boot's tracing and metrics frameworks.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BootStateMachineMonitor(io.micrometer.core.instrument.MeterRegistry meterRegistry, StateMachineTraceRepository stateMachineTraceRepository)
    Instantiates a new boot state machine monitor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    action(org.springframework.statemachine.StateMachine<S,E> stateMachine, Function<org.springframework.statemachine.StateContext<S,E>,reactor.core.publisher.Mono<Void>> action, long duration)
     
    void
    transition(org.springframework.statemachine.StateMachine<S,E> stateMachine, org.springframework.statemachine.transition.Transition<S,E> transition, long duration)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BootStateMachineMonitor

      public BootStateMachineMonitor(io.micrometer.core.instrument.MeterRegistry meterRegistry, StateMachineTraceRepository stateMachineTraceRepository)
      Instantiates a new boot state machine monitor.
      Parameters:
      meterRegistry - the meter registry
      stateMachineTraceRepository - the statemachine trace repository
  • Method Details

    • transition

      public void transition(org.springframework.statemachine.StateMachine<S,E> stateMachine, org.springframework.statemachine.transition.Transition<S,E> transition, long duration)
      Specified by:
      transition in interface org.springframework.statemachine.monitor.StateMachineMonitor<S,E>
      Overrides:
      transition in class org.springframework.statemachine.monitor.AbstractStateMachineMonitor<S,E>
    • action

      public void action(org.springframework.statemachine.StateMachine<S,E> stateMachine, Function<org.springframework.statemachine.StateContext<S,E>,reactor.core.publisher.Mono<Void>> action, long duration)
      Specified by:
      action in interface org.springframework.statemachine.monitor.StateMachineMonitor<S,E>
      Overrides:
      action in class org.springframework.statemachine.monitor.AbstractStateMachineMonitor<S,E>