Class StateListenerAdapter<S,E>
java.lang.Object
org.springframework.statemachine.state.StateListenerAdapter<S,E>
- Type Parameters:
S- the type of stateE- the type of event
- All Implemented Interfaces:
StateListener<S,E>
Adapter implementation of
StateListener implementing all
methods which extended implementation can override.- 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.
-
Constructor Details
-
StateListenerAdapter
public StateListenerAdapter()
-
-
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
-