Skip to content

Commit 93dae68

Browse files
committed
Update SyncFlags: rename to DebugLogIdMapping, add ClientKeepDataOnSyncError
1 parent ba1d442 commit 93dae68

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

objectbox-java/src/main/java/io/objectbox/model/SyncFlags.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ private SyncFlags() { }
2727
/**
2828
* Enable (rather extensive) logging on how IDs are mapped (local <-> global)
2929
*/
30-
public static final int DEBUG_LOG_ID_MAPPING = 1;
30+
public static final int DebugLogIdMapping = 1;
31+
/**
32+
* If the client gets in a state that does not allow any further synchronization, this flag instructs Sync to
33+
* keep local data nevertheless. While this preserves data, you need to resolve the situation manually.
34+
* For example, you could backup the data and start with a fresh database.
35+
* Note that the default behavior (this flag is not set) is to wipe existing data from all sync-enabled types and
36+
* sync from scratch from the server.
37+
* Client-only: setting this flag for Sync server has no effect.
38+
*/
39+
public static final int ClientKeepDataOnSyncError = 2;
3140
}
3241

0 commit comments

Comments
 (0)