SyncState

@Serializable
data class SyncState(val provider: String = "", val identityKey: String = "", val entries: Map<String, SyncedEntry> = emptyMap(), val lastSuccessEpochMs: Long? = null, val lastEntryCount: Int = 0, val hold: String = "None")(source)

What the last successful writes left remote. A CACHE: every SyncEngine.sync re-lists the remote and reconciles against it, so a lost or stale state only costs a re-upload, never correctness.

Constructors

Link copied to clipboard
constructor(provider: String = "", identityKey: String = "", entries: Map<String, SyncedEntry> = emptyMap(), lastSuccessEpochMs: Long? = null, lastEntryCount: Int = 0, hold: String = "None")

Properties

Link copied to clipboard
Link copied to clipboard

WriteHold name; a string so an unknown future value degrades to WriteHold.None on read.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard