Module bus.http

Interface CoverTasks.Listener<T>

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

    Modifier and Type
    Method
    Description
    boolean
    listen(CoverHttp<?> task, T data)
    A global listener method that is called when a specific task event occurs.
  • Method Details

    • listen

      boolean listen(CoverHttp<?> task, T data)
      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:
      true to allow the task's own callback to be executed, false to prevent it.