Class CompositeStateMachineMonitor<S,E>
java.lang.Object
org.springframework.statemachine.support.AbstractCompositeItems<StateMachineMonitor<S,E>>
org.springframework.statemachine.monitor.CompositeStateMachineMonitor<S,E>
- Type Parameters:
S
- the type of stateE
- the type of event
- All Implemented Interfaces:
StateMachineMonitor<S,
E>
public class CompositeStateMachineMonitor<S,E>
extends AbstractCompositeItems<StateMachineMonitor<S,E>>
implements StateMachineMonitor<S,E>
Implementation of a
StateMachineMonitor
backed by a multiple monitors.- Author:
- Janne Valkealahti
-
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.Methods inherited from class org.springframework.statemachine.support.AbstractCompositeItems
getItems, register, setItems, unregister
-
Constructor Details
-
CompositeStateMachineMonitor
public CompositeStateMachineMonitor()
-
-
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
-