Package com.goodow.realtime.operation.impl

Examples of com.goodow.realtime.operation.impl.CollaborativeTransformer


        document.collaborators.set(collaborator.sessionId(), collaborator);
      }
    });

    if (components != null && components.length() > 0) {
      final CollaborativeTransformer transformer = new CollaborativeTransformer();
      CollaborativeOperation operation =
          transformer.createOperation(Json.createObject().set("op", components));
      applyLocally(operation);
    }
  }
View Full Code Here


    if (bus instanceof ReliableSubscribeBus) {
      ((ReliableSubscribeBus) bus).synchronizeSequenceNumber(topic, version - 1);
    }
    final Registration handlerReg =
        bus.subscribe(topic, new Handler<Message<JsonObject>>() {
          Transformer<CollaborativeOperation> transformer = new CollaborativeTransformer();

          @Override
          public void handle(Message<JsonObject> message) {
            JsonObject body = message.body();
            CollaborativeOperation op = transformer.createOperation(body);
            bridge.consume(op);
          }
        });
    bridge.setOutputSink(new OutputSink() {
      @Override
View Full Code Here

  private DocumentBridge bridge;

  public OperationSucker(Bus bus, final String id) {
    this.bus = bus;
    this.id = id;
    transformer = new CollaborativeTransformer();
    channel = new OperationChannel<CollaborativeOperation>(id, transformer, bus, this);
  }
View Full Code Here

TOP

Related Classes of com.goodow.realtime.operation.impl.CollaborativeTransformer

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.