coreRuntime/src/sc/sync/SyncDestination.java
public SyncResult sendSync(SyncManager.SyncContext parentContext, ArrayList<SyncLayer> layers, String syncGroup, boolean markAsSentOnly,
                              CharSequence codeUpdates, Set<String> syncTypeFilter, Set<String> resetTypeFilter) {
      SyncSerializer lastSer = null;
      HashSet<String> createdTypes = new HashSet<String>();
      // Going in sorted order - e.g. global, then session.
      // Changes found during the traversal of the global graph adds changes to the session so we miss these if we go in the reverse order.
      for (int i = 0; i < layers.size(); i++) {
         SyncLayer layer = layers.get(i);
         SyncSerializer nextSer = layer.serialize(parentContext, createdTypes, false, syncTypeFilter, resetTypeFilter);
         layer.markSyncPending();
         if (lastSer == null)
            lastSer = nextSer;
         else
            lastSer.appendSerializer(nextSer);
      }

      String layerDef = lastSer == null ? "" : lastSer.getOutput().toString();
      String debugDef = !SyncManager.trace || lastSer == null ? "" : lastSer.getDebugOutput().toString();

      return sendSyncData(parentContext, layers, layerDef, syncGroup, debugDef, markAsSentOnly, codeUpdates);
   }
/**
    * Use markAsSentOnly = true to not send any changes made yet on this connection. It's used as an optimization
    * during the client-side 'reset' to avoid resending changes queued up during page initialization - since, the client
    * will have received those changes on it's initial request.
    */
Use markAsSentOnly = true to not send any changes made yet on this connection. It's used as an optimization
during the client-side 'reset' to avoid resending changes queued up during page initialization - since, the client
will have received those changes on it's initial request.
Use markAsSentOnly = true to not send any changes made yet on this connection . It ' s used as an optimization during the client - side ' reset ' to avoid resending changes queued up during page initialization - since the client will have received those changes on it ' s initial request .
public SyncResult sendSync(SyncManager.SyncContext parentContext, ArrayList<SyncLayer> layers, String syncGroup, boolean markAsSentOnly,
                              CharSequence codeUpdates, Set<String> syncTypeFilter, Set<String> resetTypeFilter) {
      SyncSerializer lastSer = null;
      HashSet<String> createdTypes = new HashSet<String>();
      for (int i = 0; i < layers.size(); i++) {
         SyncLayer layer = layers.get(i);
         SyncSerializer nextSer = layer.serialize(parentContext, createdTypes, false, syncTypeFilter, resetTypeFilter);
         layer.markSyncPending();
         if (lastSer == null)
            lastSer = nextSer;
         else
            lastSer.appendSerializer(nextSer);
      }
      String layerDef = lastSer == null ? "" : lastSer.getOutput().toString();
      String debugDef = !SyncManager.trace || lastSer == null ? "" : lastSer.getDebugOutput().toString();
      return sendSyncData(parentContext, layers, layerDef, syncGroup, debugDef, markAsSentOnly, codeUpdates);
   }
public SyncResult sendSync ( SyncManager . SyncContext parentContext , ArrayList < SyncLayer > layers , String syncGroup , boolean markAsSentOnly , CharSequence codeUpdates , Set < String > syncTypeFilter , Set < String > resetTypeFilter ) { SyncSerializer lastSer = null ; HashSet < String > createdTypes = new HashSet < String > ( ) ; for ( int i = 0 ; i < layers . size ( ) ; i ++ ) { SyncLayer layer = layers . get ( i ) ; SyncSerializer nextSer = layer . serialize ( parentContext , createdTypes , false , syncTypeFilter , resetTypeFilter ) ; layer . markSyncPending ( ) ; if ( lastSer == null ) lastSer = nextSer ; else lastSer . appendSerializer ( nextSer ) ; } String layerDef = lastSer == null ? "" : lastSer . getOutput ( ) . toString ( ) ; String debugDef = ! SyncManager . trace || lastSer == null ? "" : lastSer . getDebugOutput ( ) . toString ( ) ; return sendSyncData ( parentContext , layers , layerDef , syncGroup , debugDef , markAsSentOnly , codeUpdates ) ; }
Use markAsSentOnly = true to not send any changes made yet on this connection.
Use markAsSentOnly = true to not send any changes made yet on this connection .
// Going in sorted order - e.g. global, then session. // Changes found during the traversal of the global graph adds changes to the session so we miss these if we go in the reverse order.