File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
objectbox-java/src/main/java/io/objectbox/model Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments