pendingMutation
fun pendingMutation(id: Long, table: String, operation: MutationOperation, createdAt: Instant, rowKeys: List<JsonObject> = emptyList(), body: JsonElement? = null): PendingMutation(source)
A write waiting in the mutation queue, as Offline.pendingMutations lists one.
Parameters
id
its id in the queue.
table
the table it targets.
operation
what it does.
createdAt
when it was queued.
rowKeys
the primary-key values of the rows it touches.
body
the body it sends, or null.
fun pendingMutation(id: Long, table: String, operation: MutationOperation, createdAt: Instant, rowKeys: List<JsonObject> = emptyList(), body: JsonElement? = null, baseVersion: String?): PendingMutation(source)
A write waiting in the mutation queue with the version it replays against, as Offline.pendingMutations lists a write to a table with a version column.
Parameters
id
its id in the queue.
table
the table it targets.
operation
what it does.
createdAt
when it was queued.
rowKeys
the primary-key values of the rows it touches.
body
the body it sends, or null.
baseVersion
the row's version the replay is preconditioned on, or null for none.