Package org.infinispan.test.data

Examples of org.infinispan.test.data.Key.allowSerialization()


      log.trace("Before conditional removeAsync");
      Future<Boolean> f3 = c1.removeAsync(key, v_null);
      assert f3 != null;
      assert !f3.isCancelled();
      if (!isLockOwner(c1, key))
         key.allowSerialization();
      assertFutureValue(f3, Boolean.FALSE);
      assert f3.isDone();
      assertOnAllCaches(key, v4, c1, c2);

      log.trace("Before conditional removeAsync2");
View Full Code Here


      log.trace("Before conditional removeAsync2");
      f3 = c1.removeAsync(key, v4);
      assert f3 != null;
      assert !f3.isDone();
      assert c2.get(key).equals(v4);
      key.allowSerialization();
      assert !f3.isCancelled();
      assertFutureValue(f3, true);
      assert f3.isDone();
      assertOnAllCaches(key, null, c1, c2);
View Full Code Here

      log.trace("Before replaceAsync");
      f = c1.replaceAsync(key, v5);
      assert f != null;
      assert !f.isCancelled();
      if (!isLockOwner(c1, key))
         key.allowSerialization();
      assertFutureValue(f, null);
      assert f.isDone();
      assertOnAllCaches(key, null, c1, c2);

      log.trace("Before put(k,v) " + key + ", " + v);
View Full Code Here

      assertFutureValue(f, null);
      assert f.isDone();
      assertOnAllCaches(key, null, c1, c2);

      log.trace("Before put(k,v) " + key + ", " + v);
      key.allowSerialization();
      resetListeners();
      c1.put(key, v);
      eventually(new Condition() {
         @Override
         public boolean isSatisfied() throws Exception {
View Full Code Here

      log.trace("Before replaceAsync2");
      f = c1.replaceAsync(key, v5);
      assert f != null;
      assert !f.isDone();
      assert c2.get(key).equals(v);
      key.allowSerialization();
      assert !f.isCancelled();
      assertFutureValue(f, v);
      assert f.isDone();
      assertOnAllCaches(key, v5, c1, c2);
View Full Code Here

      log.trace("Before replaceAsync3");
      f3 = c1.replaceAsync(key, v_null, v6);
      assert f3 != null;
      assert !f3.isCancelled();
      if (!isLockOwner(c1, key))
         key.allowSerialization();
      assertFutureValue(f3, false);
      assert f3.isDone();
      assertOnAllCaches(key, v5, c1, c2);

      log.trace("Before replaceAsync4");
View Full Code Here

      log.trace("Before replaceAsync4");
      f3 = c1.replaceAsync(key, v5, v6);
      assert f3 != null;
      assert !f3.isDone();
      assert c2.get(key).equals(v5);
      key.allowSerialization();
      assert !f3.isCancelled();
      assertFutureValue(f3, true);
      assert f3.isDone();
      assertOnAllCaches(key, v6, c1, c2);
   }
View Full Code Here

      Future<String> f = c1.putAsync(key, v);
      assert f != null;
      assert !f.isDone();
      assert c2.get(key) == null;
      log.info("*** Allowing serialization on key");
      key.allowSerialization();
      log.info("*** Finished allowing serialization on key, checking future if cancelled");
      assert !f.isCancelled();
      log.info("*** Future not cancelled, checking future.get()");
      assertFutureValue(f, null);
      assert f.isDone();
View Full Code Here

      log.trace("Before put2");
      f = c1.putAsync(key, v2);
      assert f != null;
      assert !f.isDone();
      assert c2.get(key).equals(v);
      key.allowSerialization();
      assert !f.isCancelled();
      assertFutureValue(f, v);
      assert f.isDone();
      assertOnAllCaches(key, v2, c1, c2);
View Full Code Here

      // put
      Future<String> f = c1.putAsync(key, v);
      assert f != null;
      assert !f.isDone();
      assert c2.get(key).equals(v);
      key.allowSerialization();
      assert !f.isCancelled();
      assert f.get() == null;
      assert f.isDone();
      assertInvalidated(key, v);
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.