Class CompositeActionListener<S,E>
java.lang.Object
org.springframework.statemachine.support.AbstractCompositeItems<ActionListener<S,E>>
org.springframework.statemachine.action.CompositeActionListener<S,E>
- Type Parameters:
S
- the type of stateE
- the type of event
- All Implemented Interfaces:
ActionListener<S,
E>
public class CompositeActionListener<S,E>
extends AbstractCompositeItems<ActionListener<S,E>>
implements ActionListener<S,E>
Implementation of a
ActionListener
backed by a multiple listeners.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onExecute
(StateMachine<S, E> stateMachine, Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>> action, long duration) Notified duration of a particular action.Methods inherited from class org.springframework.statemachine.support.AbstractCompositeItems
getItems, register, setItems, unregister
-
Constructor Details
-
CompositeActionListener
public CompositeActionListener()
-
-
Method Details
-
onExecute
public void onExecute(StateMachine<S, E> stateMachine, Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>> action, long duration) Description copied from interface:ActionListener
Notified duration of a particular action.- Specified by:
onExecute
in interfaceActionListener<S,
E> - Parameters:
stateMachine
- the state machineaction
- the actionduration
- the transition duration
-