Class AbstractStateMachineMonitor<S,E>
java.lang.Object
org.springframework.statemachine.monitor.AbstractStateMachineMonitor<S,E>
- Type Parameters:
S
- the type of stateE
- the type of event
- All Implemented Interfaces:
StateMachineMonitor<S,
E>
- Direct Known Subclasses:
BootStateMachineMonitor
public abstract class AbstractStateMachineMonitor<S,E>
extends Object
implements StateMachineMonitor<S,E>
Base implementation of a
StateMachineMonitor
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
action
(StateMachine<S, E> stateMachine, Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>> 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.
-
Constructor Details
-
AbstractStateMachineMonitor
public AbstractStateMachineMonitor()
-
-
Method Details
-
transition
Description copied from interface:StateMachineMonitor
Notified duration of a particular transition.- Specified by:
transition
in interfaceStateMachineMonitor<S,
E> - Parameters:
stateMachine
- the state machinetransition
- the transitionduration
- the transition duration
-
action
public void action(StateMachine<S, E> stateMachine, Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>> action, long duration) Description copied from interface:StateMachineMonitor
Notified duration of a particular action.- Specified by:
action
in interfaceStateMachineMonitor<S,
E> - Parameters:
stateMachine
- the state machineaction
- the actionduration
- the transition duration
-