Examples of ReplicableCommand


Examples of org.jboss.cache.commands.ReplicableCommand

      List<ReplicableCommand> calls = new ArrayList<ReplicableCommand>();

      Fqn f = Fqn.fromElements("BlahBlah", 3, false);
      String k = "key", v = "value";

      ReplicableCommand cmd = new PutKeyValueCommand(null, f, k, v);
      ReplicableCommand replCmd = new ReplicateCommand(cmd);

      calls.add(replCmd);

      cmd = new PutKeyValueCommand(null, f, k, v);
      replCmd = new ReplicateCommand(cmd);

      calls.add(replCmd);

      ReplicableCommand replAllCmd = new ReplicateCommand(calls);

      byte[] buf = marshaller.objectToByteBuffer(replAllCmd);

      assertEquals(replAllCmd, marshaller.objectFromByteBuffer(buf));
   }
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.