类 InMemoryTaskManager
java.lang.Object
io.github.a2ap.core.server.impl.InMemoryTaskManager
- 所有已实现的接口:
TaskManager
In-memory implementation of the TaskManager interface.
This implementation stores all tasks in memory and is suitable for testing
and demonstration purposes.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明reactor.core.publisher.Mono<Task>applyArtifactUpdate(Task task, TaskArtifactUpdateEvent event) Apply artifact update with append support from TaskArtifactUpdateEventreactor.core.publisher.Mono<Task>applyStatusUpdate(Task task, TaskStatusUpdateEvent event) Apply status update with append support from TaskStatusUpdateEventreactor.core.publisher.Mono<Task>applyTaskUpdate(Task task, TaskUpdate update) apply task update for taskreactor.core.publisher.Mono<Task>applyTaskUpdate(Task task, List<TaskUpdate> taskUpdates) apply take update for taskGets a task by its ID.getTaskNotification(String taskId) get task notification configloadOrCreateContext(MessageSendParams params) Load or create a new task.voidregister task notification config
-
构造器详细资料
-
InMemoryTaskManager
-
-
方法详细资料
-
loadOrCreateContext
从接口复制的说明:TaskManagerLoad or create a new task.- 指定者:
loadOrCreateContext在接口中TaskManager- 参数:
params- The task param to create- 返回:
- The created task with a generated ID
-
getTask
从接口复制的说明:TaskManagerGets a task by its ID.- 指定者:
getTask在接口中TaskManager- 参数:
taskId- The ID of the task- 返回:
- The task with the specified ID, or null if not found
-
applyTaskUpdate
从接口复制的说明:TaskManagerapply take update for task- 指定者:
applyTaskUpdate在接口中TaskManager- 参数:
task- TaskContexttaskUpdates- taskUpdate TaskStatus or Artifact update- 返回:
- mono of task
-
applyTaskUpdate
从接口复制的说明:TaskManagerapply task update for task- 指定者:
applyTaskUpdate在接口中TaskManager- 参数:
task- TaskContextupdate- tash update TaskStatus or Artifact update- 返回:
- mono of task
-
applyStatusUpdate
从接口复制的说明:TaskManagerApply status update with append support from TaskStatusUpdateEvent- 指定者:
applyStatusUpdate在接口中TaskManager- 参数:
task- The task to updateevent- The TaskStatusUpdateEvent containing status information- 返回:
- Updated task
-
applyArtifactUpdate
public reactor.core.publisher.Mono<Task> applyArtifactUpdate(Task task, TaskArtifactUpdateEvent event) Apply artifact update with append support from TaskArtifactUpdateEvent- 指定者:
applyArtifactUpdate在接口中TaskManager- 参数:
task- The task to updateevent- The TaskArtifactUpdateEvent containing artifact and append information- 返回:
- Updated task
-
registerTaskNotification
从接口复制的说明:TaskManagerregister task notification config- 指定者:
registerTaskNotification在接口中TaskManager- 参数:
config- notification config
-
getTaskNotification
从接口复制的说明:TaskManagerget task notification config- 指定者:
getTaskNotification在接口中TaskManager- 参数:
taskId- task id- 返回:
- notification config
-