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.
- Author:
- Janne Valkealahti
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>doOnComplete(StateContext<S, E> context) Called whenStatewant to notify of its completion.voidonComplete(StateContext<S, E> context) Called whenStatewant to notify of its completion.voidonEntry(StateContext<S, E> context) Called whenStatewant to notify of its entry.voidonExit(StateContext<S, E> context) Called whenStatewant 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:StateListenerCalled whenStatewant to notify of its entry.- Specified by:
onEntryin interfaceStateListener<S,E> - Parameters:
context- the state context
-
onExit
Description copied from interface:StateListenerCalled whenStatewant to notify of its exit.- Specified by:
onExitin interfaceStateListener<S,E> - Parameters:
context- the state context
-
onComplete
Description copied from interface:StateListenerCalled whenStatewant to notify of its completion.- Specified by:
onCompletein interfaceStateListener<S,E> - Parameters:
context- the state context
-
doOnComplete
Description copied from interface:StateListenerCalled whenStatewant to notify of its completion.- Specified by:
doOnCompletein interfaceStateListener<S,E> - Parameters:
context- the state context- Returns:
- mono for completion
-