Interface OnStartListener<T>

Type Parameters:
T - the type of the object being managed by the ActiveObjectContext
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 OnStartListener<T>
Represents a listener that is called when an object starts.

The OnStartListener interface is a functional interface, meaning it has exactly one abstract method (onObjectStart). This allows instances of this interface to be created with lambda expressions or method references.

Author:
Sergey Grachev
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when an object starts.
  • Method Details

    • onObjectStart

      void onObjectStart(Start message, ActiveObjectContext<T> context)
      Called when an object starts.

      This method is invoked with a Start message and the associated ActiveObjectContext. Implementations of this method should contain the logic to be executed when the object starts.

      Parameters:
      message - a Start message indicating that the object has started
      context - the ActiveObjectContext associated with the starting object