Class JpaTask
java.lang.Object
io.a2a.extras.taskstore.database.jpa.JpaTask
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()io.a2a.spec.TaskgetTask()voidsetFinalizedAt(Instant finalizedAt, boolean isFinalState) Sets the finalized timestamp for this task.voidvoidsetTask(io.a2a.spec.Task task) voidsetTaskJson(String taskJson)
-
Constructor Details
-
JpaTask
public JpaTask() -
JpaTask
-
-
Method Details
-
getId
-
setId
-
getTaskJson
-
setTaskJson
-
getFinalizedAt
-
setFinalizedAt
Sets the finalized timestamp for this task.This method is idempotent - it only sets the timestamp on the first transition to a final state, as a defense-in-depth measure complementing the existing application logic that prevents modifications to final tasks.
- Parameters:
finalizedAt- the timestamp when the task was finalizedisFinalState- whether the current task state is final
-
getTask
public io.a2a.spec.Task getTask() throws com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
setTask
public void setTask(io.a2a.spec.Task task) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-