Interface StateListener<S,E>
- Type Parameters:
S
- the type of stateE
- the type of event
- All Known Implementing Classes:
CompositeStateListener
,StateListenerAdapter
public interface StateListener<S,E>
StateListener
for various state events.- Author:
- Janne Valkealahti
-
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.
-
Method Details
-
onEntry
Called whenState
want to notify of its entry.- Parameters:
context
- the state context
-
onExit
Called whenState
want to notify of its exit.- Parameters:
context
- the state context
-
onComplete
Called whenState
want to notify of its completion.- Parameters:
context
- the state context
-
doOnComplete
Called whenState
want to notify of its completion.- Parameters:
context
- the state context- Returns:
- mono for completion
-