Package org.infinispan

Examples of org.infinispan.Cache.removeListener()


         if (throwError && cause.getCause() instanceof InvocationTargetException)
            throw cause.getCause().getCause();
         else
            throw cause.getCause();
      } finally {
         cache2.removeListener(listener);
      }
   }

   @Listener
   public static class ErrorInducingListener {
View Full Code Here


         cache1.put("key", pojo);
         assert l.newValue instanceof Pojo : "recieved " + l.newValue.getClass().getName();
         // +1 due to new marshallable checks
         assertSerializationCounts(2, 0);
      } finally {
         cache1.removeListener(l);
      }
   }

   public void testRemoteCallbackValues() throws Exception {
      Cache cache1 = cache(0, "replSync");
View Full Code Here

         pojo.b = false;
         cache1.put("key", pojo);
         assert l.newValue instanceof Pojo;
         assertSerializationCounts(1, 1);
      } finally {
         cache2.removeListener(l);
      }
   }
  
   public void testEvictWithMarshalledValueKey() {
      Cache cache1 = cache(0, "replSync");
View Full Code Here

         if (throwError && e.getCause() instanceof InvocationTargetException)
            throw e.getCause().getCause();
         else
            throw e.getCause();
      } finally {
         cache2.removeListener(listener);
      }
   }

   @Listener
   public static class ErrorInducingListener {
View Full Code Here

         cache1.put("key", pojo);
         assert l.newValue instanceof Pojo : "recieved " + l.newValue.getClass().getName();
         // +1 due to new marshallable checks
         assertSerializationCounts(2, 0);
      } finally {
         cache1.removeListener(l);
      }
   }

   public void testRemoteCallbackValues() throws Exception {
      Cache cache1 = cache(0, "replSync");
View Full Code Here

         pojo.b = false;
         cache1.put("key", pojo);
         assert l.newValue instanceof Pojo;
         assertSerializationCounts(1, 1);
      } finally {
         cache2.removeListener(l);
      }
   }
  
   public void testEvictWithMarshalledValueKey() {
      Cache cache1 = cache(0, "replSync");
View Full Code Here

         Pojo pojo = new Pojo();
         cache1.put("key", pojo);
         assertTrue("recieved " + l.newValue.getClass().getName(), l.newValue instanceof Pojo);
         assertSerializationCounts(1, 0);
      } finally {
         cache1.removeListener(l);
      }
   }

   public void testRemoteCallbackValues() throws Exception {
      Cache cache1 = cache(0, "replSync");
View Full Code Here

         pojo.b = false;
         cache1.put("key", pojo);
         assertTrue(l.newValue instanceof Pojo);
         assertSerializationCounts(1, 1);
      } finally {
         cache2.removeListener(l);
      }
   }

   public void testEvictWithMarshalledValueKey() {
      Cache cache1 = cache(0, "replSync");
View Full Code Here

         cache1.put("key", pojo);
         assert l.newValue instanceof Pojo : "recieved " + l.newValue.getClass().getName();
         // +1 due to new marshallable checks
         assertSerializationCounts(2, 0);
      } finally {
         cache1.removeListener(l);
      }
   }

   public void testRemoteCallbackValues() throws Exception {
      Cache cache1 = cache(0, "replSync");
View Full Code Here

         pojo.b = false;
         cache1.put("key", pojo);
         assert l.newValue instanceof Pojo;
         assertSerializationCounts(1, 1);
      } finally {
         cache2.removeListener(l);
      }
   }
  
   public void testEvictWithMarshalledValueKey() {
      Cache cache1 = cache(0, "replSync");
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.