Package-level declarations

Types

Link copied to clipboard
data class FlushReport(val succeeded: Int, val retainedForRetry: Int, val droppedDeadLetters: Int)

Summary emitted after executing OfflineMutationQueue.flush.

Link copied to clipboard
class OfflineMutationQueue(backingStore: KeyValueStore, clock: Clock = SystemClock(), uuidGenerator: UuidGenerator = RandomUuidGenerator(), maxQueueSize: Int = DEFAULT_MAX_QUEUE_SIZE, maxRetries: Int = DEFAULT_MAX_RETRIES, storageKey: String = DEFAULT_STORAGE_KEY, json: Json = DefaultSyncJson)

Local-first durable FIFO mutation queue backed by a KeyValueStore and bounded capacity.

Link copied to clipboard
data class OfflineQueueStatus(val pendingCount: Int, val isFlushing: Boolean = false, val lastFlushedEpochMillis: Long? = null, val droppedDeadLetters: Int = 0)

Aggregate metrics describing the current OfflineMutationQueue backlog.

Link copied to clipboard
@Serializable
data class QueuedMutation(val id: String, val type: String, val payload: JsonElement, val createdAtEpochMillis: Long, val retryCount: Int = 0)

Durable offline mutation record waiting to be synchronized with a remote backend.