syncReport

fun syncReport(syncedCount: Int, rejected: List<RejectedMutation> = emptyList(), remainingCount: Int = 0, alreadyOnServerCount: Int = 0, heldBehindOtherTablesCount: Int = 0): SyncReport(source)

What a call of Offline.syncPendingMutations did. Its SyncReport.stopReason is the one the library gives such a report: SyncStopReason.HeldBehindOtherTables when heldBehindOtherTablesCount is more than zero, else SyncStopReason.Completed.

Parameters

syncedCount

the writes sent and accepted.

rejected

the writes the server refused for good.

remainingCount

the writes still queued.

alreadyOnServerCount

of syncedCount, the inserts whose rows the server already held.

heldBehindOtherTablesCount

of remainingCount, the writes a call for one table held back behind an earlier write to another table.


fun syncReport(syncedCount: Int, rejected: List<RejectedMutation> = emptyList(), remainingCount: Int = 0, alreadyOnServerCount: Int = 0, heldBehindOtherTablesCount: Int = 0, conflictsResolvedCount: Int = 0, conflictsKeptServerCount: Int = 0, conflicted: List<ConflictedMutation> = emptyList()): SyncReport(source)

What a call of Offline.syncPendingMutations did, with the conflicts its replay met; a test sets the conflict fields it reads, and the others keep the values of a pass that met none. Its SyncReport.stopReason is the one the library gives such a report: SyncStopReason.HeldBehindOtherTables when heldBehindOtherTablesCount is more than zero, else SyncStopReason.Completed.

Parameters

syncedCount

the writes sent and accepted.

rejected

the writes the server refused for good.

remainingCount

the writes still queued.

alreadyOnServerCount

of syncedCount, the writes the server already held.

heldBehindOtherTablesCount

of remainingCount, the writes a call for one table held back behind an earlier write to another table.

conflictsResolvedCount

of syncedCount, the conflicts settled and sent.

conflictsKeptServerCount

the writes dropped so the server's row stands.

conflicted

the writes parked on the conflicted list.


fun syncReport(syncedCount: Int = 0, rejected: List<RejectedMutation> = emptyList(), remainingCount: Int = 0, alreadyOnServerCount: Int = 0, heldBehindOtherTablesCount: Int = 0, conflictsResolvedCount: Int = 0, conflictsKeptServerCount: Int = 0, conflicted: List<ConflictedMutation> = emptyList(), stopReason: SyncStopReason): SyncReport(source)

What a call of Offline.syncPendingMutations did, and why it returned when it did; every field but stopReason, which selects this overload, defaults to the value of a call that sent nothing. Build a failure's reason with serverFailureStop or localFailureStop; the others are objects, such as SyncStopReason.NetworkUnavailable.

Parameters

syncedCount

the writes sent and accepted.

rejected

the writes the server refused for good.

remainingCount

the writes still queued.

alreadyOnServerCount

of syncedCount, the writes the server already held.

heldBehindOtherTablesCount

of remainingCount, the writes a call for one table held back behind an earlier write to another table.

conflictsResolvedCount

of syncedCount, the conflicts settled and sent.

conflictsKeptServerCount

the writes dropped so the server's row stands.

conflicted

the writes parked on the conflicted list.

stopReason

why the call returned when it did.


fun syncReport(syncedCount: Int = 0, rejected: List<RejectedMutation> = emptyList(), remainingCount: Int = 0, alreadyOnServerCount: Int = 0, heldBehindOtherTablesCount: Int = 0, conflictsResolvedCount: Int = 0, conflictsKeptServerCount: Int = 0, conflicted: List<ConflictedMutation> = emptyList(), stopReason: SyncStopReason = SyncStopReason.Completed, rejectedUploads: List<RejectedUpload>): SyncReport(source)

What a call of Offline.syncPendingMutations did, with the queued uploads Storage refused; every field but rejectedUploads, which selects this overload, defaults to the value of a call that sent nothing and ran to the end.

Parameters

syncedCount

the writes sent and accepted, uploads included.

rejected

the row writes the server refused for good.

remainingCount

the writes still queued, uploads included.

alreadyOnServerCount

of syncedCount, the writes the server already held.

heldBehindOtherTablesCount

of remainingCount, the writes a call for one table held back behind an earlier write to another table.

conflictsResolvedCount

of syncedCount, the conflicts settled and sent.

conflictsKeptServerCount

the writes dropped so the server's row stands.

conflicted

the writes parked on the conflicted list.

stopReason

why the call returned when it did.

rejectedUploads

the queued uploads Storage refused for good.