Class SyncFlags


  • public final class SyncFlags
    extends java.lang.Object
    Flags to adjust sync behavior like additional logging.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ClientKeepDataOnSyncError
      If the client gets in a state that does not allow any further synchronization, this flag instructs Sync to keep local data nevertheless.
      static int DebugLogIdMapping
      Enable (rather extensive) logging on how IDs are mapped (local <-> global)
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DebugLogIdMapping

        public static final int DebugLogIdMapping
        Enable (rather extensive) logging on how IDs are mapped (local <-> global)
        See Also:
        Constant Field Values
      • ClientKeepDataOnSyncError

        public static final int ClientKeepDataOnSyncError
        If the client gets in a state that does not allow any further synchronization, this flag instructs Sync to keep local data nevertheless. While this preserves data, you need to resolve the situation manually. For example, you could backup the data and start with a fresh database. Note that the default behavior (this flag is not set) is to wipe existing data from all sync-enabled types and sync from scratch from the server. Client-only: setting this flag for Sync server has no effect.
        See Also:
        Constant Field Values