Class DefaultTaskStoreServiceImpl

java.lang.Object
com.mulesoft.connectors.a2a.internal.server.agent.repository.DefaultTaskStoreServiceImpl
All Implemented Interfaces:
TaskStoreService

public class DefaultTaskStoreServiceImpl extends Object implements TaskStoreService
  • Constructor Details

  • Method Details

    • updateHistory

      public void updateHistory(String taskId, String historyObj) throws org.mule.runtime.api.store.ObjectStoreException
      Update the taskRepository item history list with the new history message.
      Specified by:
      updateHistory in interface TaskStoreService
      Throws:
      org.mule.runtime.api.store.ObjectStoreException
    • updateTask

      public void updateTask(String taskId, String taskObj) throws org.mule.runtime.api.store.ObjectStoreException
      Update the taskRepository item task string with the updated task.
      Specified by:
      updateTask in interface TaskStoreService
      Throws:
      org.mule.runtime.api.store.ObjectStoreException
    • getTask

      public String getTask(String taskId, int historyLength) throws org.mule.runtime.api.store.ObjectStoreException
      Get task latest status with history.
      Specified by:
      getTask in interface TaskStoreService
      Throws:
      org.mule.runtime.api.store.ObjectStoreException
    • updatePushNotificationConfig

      public void updatePushNotificationConfig(String taskId, EffectivePushNotificationConfig config) throws org.mule.runtime.api.store.ObjectStoreException
      Specified by:
      updatePushNotificationConfig in interface TaskStoreService
      Throws:
      org.mule.runtime.api.store.ObjectStoreException
    • clearPushNotificationConfigs

      public void clearPushNotificationConfigs(String taskId) throws org.mule.runtime.api.store.ObjectStoreException
      Specified by:
      clearPushNotificationConfigs in interface TaskStoreService
      Throws:
      org.mule.runtime.api.store.ObjectStoreException
    • deletePushNotificationConfigs

      public void deletePushNotificationConfigs(String taskId, String pushNotificationConfigId) throws org.mule.runtime.api.store.ObjectStoreException
      Specified by:
      deletePushNotificationConfigs in interface TaskStoreService
      Throws:
      org.mule.runtime.api.store.ObjectStoreException
    • upsert

      public void upsert(String taskId, String contextId) throws org.mule.runtime.api.store.ObjectStoreException
      Create new entry for provided taskId and contextId in object store
      Specified by:
      upsert in interface TaskStoreService
      Parameters:
      taskId - task id
      contextId - context id
      Throws:
      org.mule.runtime.api.store.ObjectStoreException
    • create

      public void create(String taskId, String contextId, StreamingContext context) throws org.mule.runtime.api.store.ObjectStoreException
      Create new entry for provided taskId and contextId in object store along with StreamingContext
      Specified by:
      create in interface TaskStoreService
      Parameters:
      taskId - task id
      contextId - context id
      context - streaming context
      Throws:
      org.mule.runtime.api.store.ObjectStoreException