Examples of waitForReplicationToOccur()


Examples of org.jboss.cache.util.internals.replicationlisteners.ReplicationListener.waitForReplicationToOccur()

      cacheLister3.expectWithTx(PutKeyValueCommand.class);
      mgr1.begin();
      cache1.put("/test", "key", "value2");
      mgr1.commit();
      cacheLister2.waitForReplicationToOccur();
      cacheLister3.waitForReplicationToOccur();

      // only test cache1 and cache2.  Assume cache3 has crashed out.
      assertEquals(0, cache1.getNumberOfLocksHeld());
      assertEquals(0, cache2.getNumberOfLocksHeld());
      assertEquals("put in transaction should NOT have been rolled back", "value2", cache1.get("/test", "key"));
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.