Package com.google.collide.dto.server.DtoServerImpls

Examples of com.google.collide.dto.server.DtoServerImpls.ServerToClientDocOpsImpl.toJson()


        // Broadcast the applied DocOp all the participants, ignoring the sender.
        ServerToClientDocOpsImpl broadcastedDocOps =
            ServerToClientDocOpsImpl.make().setDocOps(appliedDocOpsList);
        vertx.eventBus().send("participants.broadcast", new JsonObject().putString(
            Participants.OMIT_SENDER_TAG, authorId).putString(
            "payload", broadcastedDocOps.toJson()));
        return broadcastedDocOps;
      } catch (DocumentOperationException e) {
        logger.error(String.format("Failed to apply DocOps [%s]", serializedDocOps));
      }
      return null;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.