S
- the type of stateE
- the type of eventpublic class BootStateMachineMonitor<S,E> extends AbstractStateMachineMonitor<S,E>
StateMachineMonitor
which converts monitoring
events and bridges those into supported format handled by Spring Boot's
tracing and metrics frameworks.Constructor and Description |
---|
BootStateMachineMonitor(io.micrometer.core.instrument.MeterRegistry meterRegistry,
StateMachineTraceRepository stateMachineTraceRepository)
Instantiates a new boot state machine monitor.
|
Modifier and Type | Method and Description |
---|---|
void |
action(StateMachine<S,E> stateMachine,
Action<S,E> action,
long duration)
Notified duration of a particular action.
|
void |
transition(StateMachine<S,E> stateMachine,
Transition<S,E> transition,
long duration)
Notified duration of a particular transition.
|
public BootStateMachineMonitor(io.micrometer.core.instrument.MeterRegistry meterRegistry, StateMachineTraceRepository stateMachineTraceRepository)
meterRegistry
- the meter registrystateMachineTraceRepository
- the statemachine trace repositorypublic void transition(StateMachine<S,E> stateMachine, Transition<S,E> transition, long duration)
StateMachineMonitor
transition
in interface StateMachineMonitor<S,E>
transition
in class AbstractStateMachineMonitor<S,E>
stateMachine
- the state machinetransition
- the transitionduration
- the transition durationpublic void action(StateMachine<S,E> stateMachine, Action<S,E> action, long duration)
StateMachineMonitor
action
in interface StateMachineMonitor<S,E>
action
in class AbstractStateMachineMonitor<S,E>
stateMachine
- the state machineaction
- the actionduration
- the transition duration