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
-
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.
-
Constructor Details
-
StateListenerAdapter
public StateListenerAdapter()
-
-
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
-