接口 QueueManager
- 所有已知实现类:
InMemoryQueueManager
public interface QueueManager
Interface for managing event queues for tasks.
This is the Java equivalent of Python's QueueManager.
-
方法概要
修饰符和类型方法说明Creates or retrieves the main event queue for a task.Retrieves the main event queue for a task without creating it.voidRemoves and closes the event queue for a task.Taps into an existing task's event queue to create a child queue.
-
方法详细资料
-
create
Creates or retrieves the main event queue for a task.- 参数:
taskId- The ID of the task.- 返回:
- The EventQueue for the task.
-
tap
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
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
Removes and closes the event queue for a task.- 参数:
taskId- The ID of the task.
-