Package org.waveprotocol.wave.concurrencycontrol.common

Examples of org.waveprotocol.wave.concurrencycontrol.common.DeltaPair


                + serverDelta.getAppliedAtVersion() + " unacknowledged version:"
                + unacknowledged.getTargetVersion() + ". [Received serverDelta:" + serverDelta
                + "] " + this);
      }

      DeltaPair transformedPair = (new DeltaPair(unacknowledged, serverDelta)).transform();
      // The ops of the server delta are transformed, all metadata remains.
      transformedServerDelta = transformedPair.getServer();
      // The unacknowledged delta must have applied after the server delta.
      unacknowledged = new WaveletDelta(unacknowledged.getAuthor(),
          serverDelta.getResultingVersion(), transformedPair.getClient());
    }

    // Transform against any queued ops
    transformedServerDelta = clientOperationQueue.transform(transformedServerDelta);
View Full Code Here


   * returning.
   *
   * @param operations the operations to send, all of which must specify a creator
   */
  public void onClientOperations(WaveletOperation operations[]) throws TransformException {
    DeltaPair transformedPair =
        (new DeltaPair(Arrays.asList(operations), serverOperations)).transform();
    serverOperations = transformedPair.getServer();

    for (WaveletOperation o : transformedPair.getClient()) {
      clientOperationQueue.add(o);
    }
    triggerUnsavedDataListener();
    sendDelta();
  }
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.concurrencycontrol.common.DeltaPair

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.