Class CompositeStateListener<S,E>
java.lang.Object
org.springframework.statemachine.listener.AbstractCompositeListener<StateListener<S,E>>
org.springframework.statemachine.state.CompositeStateListener<S,E>
- Type Parameters:
S
- the type of stateE
- the type of event
- All Implemented Interfaces:
StateListener<S,
E>
public class CompositeStateListener<S,E>
extends AbstractCompositeListener<StateListener<S,E>>
implements StateListener<S,E>
Composite state listener.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>
doOnComplete
(StateContext<S, E> context) Called whenState
want to notify of its completion.void
onComplete
(StateContext<S, E> context) Called whenState
want to notify of its completion.void
onEntry
(StateContext<S, E> context) Called whenState
want to notify of its entry.void
onExit
(StateContext<S, E> context) Called whenState
want to notify of its exit.Methods inherited from class org.springframework.statemachine.listener.AbstractCompositeListener
getListeners, register, setListeners, unregister
-
Constructor Details
-
CompositeStateListener
public CompositeStateListener()
-
-
Method Details
-
onEntry
Description copied from interface:StateListener
Called whenState
want to notify of its entry.- Specified by:
onEntry
in interfaceStateListener<S,
E> - Parameters:
context
- the state context
-
onExit
Description copied from interface:StateListener
Called whenState
want to notify of its exit.- Specified by:
onExit
in interfaceStateListener<S,
E> - Parameters:
context
- the state context
-
onComplete
Description copied from interface:StateListener
Called whenState
want to notify of its completion.- Specified by:
onComplete
in interfaceStateListener<S,
E> - Parameters:
context
- the state context
-
doOnComplete
Description copied from interface:StateListener
Called whenState
want to notify of its completion.- Specified by:
doOnComplete
in interfaceStateListener<S,
E> - Parameters:
context
- the state context- Returns:
- mono for completion
-