接口 QueueManager

所有已知实现类:
InMemoryQueueManager

public interface QueueManager
Interface for managing event queues for tasks.

This is the Java equivalent of Python's QueueManager.

  • 方法概要

    修饰符和类型
    方法
    说明
    create(String taskId)
    Creates or retrieves the main event queue for a task.
    get(String taskId)
    Retrieves the main event queue for a task without creating it.
    void
    remove(String taskId)
    Removes and closes the event queue for a task.
    tap(String taskId)
    Taps into an existing task's event queue to create a child queue.
  • 方法详细资料

    • create

      EventQueue create(String taskId)
      Creates or retrieves the main event queue for a task.
      参数:
      taskId - The ID of the task.
      返回:
      The EventQueue for the task.
    • tap

      EventQueue tap(String taskId)
      Taps into an existing task's event queue to create a child queue.
      参数:
      taskId - The ID of the task.
      返回:
      A new EventQueue that receives events from the main task queue, or null if no queue exists for this task.
    • get

      EventQueue get(String taskId)
      Retrieves the main event queue for a task without creating it.
      参数:
      taskId - The ID of the task.
      返回:
      The EventQueue for the task, or null if it doesn't exist.
    • remove

      void remove(String taskId)
      Removes and closes the event queue for a task.
      参数:
      taskId - The ID of the task.