Class DefaultTaskHistory
java.lang.Object
com.mulesoft.connectors.a2a.internal.server.agent.history.DefaultTaskHistory
- All Implemented Interfaces:
TaskHistory
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTaskHistory(org.mule.runtime.api.store.ObjectStore<TaskHistoryItem> historyObjectStore, org.mule.runtime.api.lock.LockFactory lockFactory, String ownerConfigName) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidvoidupsert(String taskId, TaskHistoryItem item)
-
Constructor Details
-
DefaultTaskHistory
public DefaultTaskHistory(org.mule.runtime.api.store.ObjectStore<TaskHistoryItem> historyObjectStore, org.mule.runtime.api.lock.LockFactory lockFactory, String ownerConfigName)
-
-
Method Details
-
upsert
public void upsert(String taskId, TaskHistoryItem item) throws org.mule.runtime.api.store.ObjectStoreException - Specified by:
upsertin interfaceTaskHistory- Throws:
org.mule.runtime.api.store.ObjectStoreException
-
get
public Optional<TaskHistoryItem> get(String taskId) throws org.mule.runtime.api.exception.ObjectNotFoundException, org.mule.runtime.api.store.ObjectStoreException - Specified by:
getin interfaceTaskHistory- Throws:
org.mule.runtime.api.exception.ObjectNotFoundExceptionorg.mule.runtime.api.store.ObjectStoreException
-
remove
- Specified by:
removein interfaceTaskHistory- Throws:
org.mule.runtime.api.store.ObjectStoreException
-
close
public void close()- Specified by:
closein interfaceTaskHistory
-