TaskBridgeCheckpointStore

Interface for persisting task progress (last processed event ID).

Implementing this allows the client to resume task observation from the exact point it stopped, even after app process death or manual restart.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun clear(key: String)

Removes the checkpoint associated with the given key. Called when a task reaches a terminal state.

Link copied to clipboard
abstract suspend fun load(key: String): String?

Loads the last event ID for the given key.

Link copied to clipboard
abstract suspend fun save(key: String, lastEventId: String)

Persists the lastEventId for the given key.