java.lang.Object
com.mulesoft.connectors.a2a.internal.server.agent.history.DefaultTaskHistory
All Implemented Interfaces:
TaskHistory

public class DefaultTaskHistory extends Object implements TaskHistory
  • 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:
      upsert in interface TaskHistory
      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:
      get in interface TaskHistory
      Throws:
      org.mule.runtime.api.exception.ObjectNotFoundException
      org.mule.runtime.api.store.ObjectStoreException
    • remove

      public void remove(String taskId) throws org.mule.runtime.api.store.ObjectStoreException
      Specified by:
      remove in interface TaskHistory
      Throws:
      org.mule.runtime.api.store.ObjectStoreException
    • close

      public void close()
      Specified by:
      close in interface TaskHistory