EventStore

interface EventStore(source)

Interface for resumability support via event storage

Functions

Link copied to clipboard
abstract suspend fun getStreamIdForEventId(eventId: String): String?

Returns the stream ID associated with eventId, or null if the event is unknown. Default implementation is a no-op which disables extra validation during replay.

Link copied to clipboard
abstract suspend fun replayEventsAfter(lastEventId: String, sender: suspend (eventId: String, message: JSONRPCMessage) -> Unit): String

Replays events after the specified event ID

Link copied to clipboard
abstract suspend fun storeEvent(streamId: String, message: JSONRPCMessage): String

Stores an event for later retrieval