Package io.a2a.server.tasks
Class InMemoryPushNotificationConfigStore
java.lang.Object
io.a2a.server.tasks.InMemoryPushNotificationConfigStore
- All Implemented Interfaces:
PushNotificationConfigStore
@ApplicationScoped
public class InMemoryPushNotificationConfigStore
extends Object
implements PushNotificationConfigStore
In-memory implementation of the PushNotificationConfigStore interface.
Stores push notification configurations in memory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteInfo(String taskId, String configId) Deletes the push notification configuration for a task.Retrieves the push notification configuration for a task.voidsetInfo(String taskId, PushNotificationConfig notificationConfig) Sets or updates the push notification configuration for a task.
-
Constructor Details
-
InMemoryPushNotificationConfigStore
@Inject public InMemoryPushNotificationConfigStore()
-
-
Method Details
-
setInfo
Description copied from interface:PushNotificationConfigStoreSets or updates the push notification configuration for a task.- Specified by:
setInfoin interfacePushNotificationConfigStore- Parameters:
taskId- the task IDnotificationConfig- the push notification configuration
-
getInfo
Description copied from interface:PushNotificationConfigStoreRetrieves the push notification configuration for a task.- Specified by:
getInfoin interfacePushNotificationConfigStore- Parameters:
taskId- the task ID- Returns:
- the push notification configurations for a task
-
deleteInfo
Description copied from interface:PushNotificationConfigStoreDeletes the push notification configuration for a task.- Specified by:
deleteInfoin interfacePushNotificationConfigStore- Parameters:
taskId- the task IDconfigId- the push notification configuration
-