Interface OnStopListener<T>

Type Parameters:
T - the type of the state object managed by the active object
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface OnStopListener<T>
Interface for a listener that handles stop events in an active object context.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onObjectStop(Stop message, ActiveObjectContext<T> context)
    Called when the active object is about to be stopped.
  • Method Details

    • onObjectStop

      void onObjectStop(Stop message, ActiveObjectContext<T> context)
      Called when the active object is about to be stopped.
      Parameters:
      message - the Stop message indicating the stop request
      context - the ActiveObjectContext containing the state of the active object