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.
Interface for a listener that handles stop events in an active object context.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonObjectStop(Stop message, ActiveObjectContext<T> context) Called when the active object is about to be stopped.
-
Method Details
-
onObjectStop
Called when the active object is about to be stopped.- Parameters:
message- theStopmessage indicating the stop requestcontext- theActiveObjectContextcontaining the state of the active object
-