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 Summary
Modifier and TypeMethodDescriptionbooleanonObjectActivate(Idle.Activate message, ActiveObjectContext<T> context) Called when an object is activated due to an idle event.booleanonObjectDeactivate(Idle.Deactivate message, ActiveObjectContext<T> context) Called when an object is deactivated due to an idle event.
-
Method Details
-
onObjectActivate
Called when an object is activated due to an idle event.- Parameters:
message- the activate message indicating that the object has been activatedcontext- the active object context containing the object and related data- Returns:
- true if the listener handled the activation, false otherwise
-
onObjectDeactivate
Called when an object is deactivated due to an idle event.- Parameters:
message- the deactivate message indicating that the object has been deactivatedcontext- the active object context containing the object and related data- Returns:
- true if the listener handled the deactivation, false otherwise
-