- Type Parameters:
T- The type of data associated with the event.
- Enclosing class:
CoverTasks
public static interface CoverTasks.Listener<T>
A generic listener interface for intercepting task lifecycle events.
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Method Summary
-
Method Details
-
listen
A global listener method that is called when a specific task event occurs.- Parameters:
task- The HTTP task that triggered the event.data- The data associated with the event (e.g., a response, an exception).- Returns:
trueto allow the task's own callback to be executed,falseto prevent it.
-