Interface StateListener<S,E>

Type Parameters:
S - the type of state
E - the type of event
All Known Implementing Classes:
CompositeStateListener, StateListenerAdapter

public interface StateListener<S,E>
StateListener for various state events.
Author:
Janne Valkealahti
  • Method Details

    • onEntry

      void onEntry(StateContext<S,E> context)
      Called when State want to notify of its entry.
      Parameters:
      context - the state context
    • onExit

      void onExit(StateContext<S,E> context)
      Called when State want to notify of its exit.
      Parameters:
      context - the state context
    • onComplete

      void onComplete(StateContext<S,E> context)
      Called when State want to notify of its completion.
      Parameters:
      context - the state context
    • doOnComplete

      reactor.core.publisher.Mono<Void> doOnComplete(StateContext<S,E> context)
      Called when State want to notify of its completion.
      Parameters:
      context - the state context
      Returns:
      mono for completion