Class A2aTaskStore

java.lang.Object
com.xebialabs.xlrelease.a2a.server.A2aTaskStore

public class A2aTaskStore extends Object
Recently answered A2A tasks, so a client that got a task from SendMessage can read it back with GetTask.

Phase-0 scope on purpose: skills execute synchronously, so a stored task is already terminal — this is a short-lived read-back window, not a work queue. In-memory, LRU-bounded, and lost on restart (a client then gets task-not-found and resends). The Phase-1 release-lifecycle mapping replaces this with persistent correlation to real releases; see the design doc §4.3.

  • Constructor Details

    • A2aTaskStore

      public A2aTaskStore()
  • Method Details

    • put

      public void put(String taskId, org.a2aproject.sdk.spec.Task task)
    • get

      public Optional<org.a2aproject.sdk.spec.Task> get(String taskId)
      The stored task. Task is an immutable record, so unlike the mutable JSON tree this used to hold there is nothing for a caller to corrupt and no defensive copy to make.