Interface OnIdleListener<T>

Type Parameters:
T - the type of the object handled by this listener

public interface OnIdleListener<T>
Represents a listener for idle events in an active object context.
Author:
Sergey Grachev
  • Method Details

    • onObjectActivate

      boolean onObjectActivate(Idle.Activate message, ActiveObjectContext<T> context)
      Called when an object is activated due to an idle event.
      Parameters:
      message - the activate message indicating that the object has been activated
      context - the active object context containing the object and related data
      Returns:
      true if the listener handled the activation, false otherwise
    • onObjectDeactivate

      boolean onObjectDeactivate(Idle.Deactivate message, ActiveObjectContext<T> context)
      Called when an object is deactivated due to an idle event.
      Parameters:
      message - the deactivate message indicating that the object has been deactivated
      context - the active object context containing the object and related data
      Returns:
      true if the listener handled the deactivation, false otherwise