Class DefaultTaskStoreServiceImpl
java.lang.Object
com.mulesoft.connectors.a2a.internal.server.agent.repository.DefaultTaskStoreServiceImpl
- All Implemented Interfaces:
TaskStoreService
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTaskStoreServiceImpl(TaskRepository taskRepository, A2ASerializer a2ASerializer) -
Method Summary
Modifier and TypeMethodDescriptionvoidclearPushNotificationConfigs(String taskId) voidcreate(String taskId, String contextId, StreamingContext context) Create new entry for provided taskId and contextId in object store along with StreamingContextvoiddeletePushNotificationConfigs(String taskId, String pushNotificationConfigId) Get task latest status with history.voidupdateHistory(String taskId, String historyObj) Update the taskRepository item history list with the new history message.voidupdatePushNotificationConfig(String taskId, EffectivePushNotificationConfig config) voidupdateTask(String taskId, String taskObj) Update the taskRepository item task string with the updated task.voidCreate new entry for provided taskId and contextId in object store
-
Constructor Details
-
DefaultTaskStoreServiceImpl
-
-
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:
updateHistoryin interfaceTaskStoreService- 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:
updateTaskin interfaceTaskStoreService- 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:
getTaskin interfaceTaskStoreService- Throws:
org.mule.runtime.api.store.ObjectStoreException
-
updatePushNotificationConfig
public void updatePushNotificationConfig(String taskId, EffectivePushNotificationConfig config) throws org.mule.runtime.api.store.ObjectStoreException - Specified by:
updatePushNotificationConfigin interfaceTaskStoreService- Throws:
org.mule.runtime.api.store.ObjectStoreException
-
clearPushNotificationConfigs
public void clearPushNotificationConfigs(String taskId) throws org.mule.runtime.api.store.ObjectStoreException - Specified by:
clearPushNotificationConfigsin interfaceTaskStoreService- Throws:
org.mule.runtime.api.store.ObjectStoreException
-
deletePushNotificationConfigs
public void deletePushNotificationConfigs(String taskId, String pushNotificationConfigId) throws org.mule.runtime.api.store.ObjectStoreException - Specified by:
deletePushNotificationConfigsin interfaceTaskStoreService- 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:
upsertin interfaceTaskStoreService- Parameters:
taskId- task idcontextId- 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:
createin interfaceTaskStoreService- Parameters:
taskId- task idcontextId- context idcontext- streaming context- Throws:
org.mule.runtime.api.store.ObjectStoreException
-