Examples of evict()


Examples of org.infinispan.Cache.evict()

      assert l.loaded.isEmpty();
      assert l.activated.isEmpty();
      assert l.passivated.isEmpty();

      c.evict("k");

      assert l.loaded.isEmpty();
      assert l.activated.isEmpty();
      assert l.passivated.isEmpty();
View Full Code Here

Examples of org.infinispan.Cache.evict()

      assert l.loaded.size() == 1;
      assert l.activated.isEmpty();
      assert l.passivated.isEmpty();

      c.put("k", "v");
      c.evict("k");

      assert l.loaded.size() == 1;
      assert l.activated.isEmpty();
      assert l.passivated.isEmpty();
View Full Code Here

Examples of org.infinispan.Cache.evict()

      assert l.passivated.isEmpty();
      assert l.loaded.size() == 1;
      assert l.activated.isEmpty();

      c.putAll(Collections.singletonMap("k2", "v-new"));
      c.evict("k2");
      assert l.passivated.isEmpty();
      assert l.loaded.size() == 1;
      assert l.activated.isEmpty();

      c.replace("k2", "something");
View Full Code Here

Examples of org.infinispan.Cache.evict()

      assert l.loaded.isEmpty();
      assert l.activated.isEmpty();
      assert l.passivated.isEmpty();

      c.evict("k");

      assert l.loaded.isEmpty();
      assert l.activated.isEmpty();
      assert l.passivated.contains("k");
View Full Code Here

Examples of org.infinispan.Cache.evict()

   public void testEvictWithMarshalledValueKey() {
      Cache cache1 = cache(0, "replSync");
      cache(1, "replSync");
      Pojo pojo = new Pojo();
      cache1.put(pojo, pojo);
      cache1.evict(pojo);
      assert !cache1.containsKey(pojo);
   }

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

Examples of org.jboss.cache.CacheSPI.evict()

      assertEquals(value, cache.get(fqn, key));
      assertNull(loader.get(fqn));

      // evict from cache
      mgr.begin();
      cache.evict(fqn);
      mgr.commit();

      mgr.begin();
      // should now be passivated in the loader
      // don't do a cache.get() first as this will activate this node from the loader again!
View Full Code Here

Examples of org.jboss.cache.CacheSPI.evict()

      assertEquals(value, cache.get(fqn, key));
      assertNull(loader.get(fqn));

      // evict from cache
      mgr.begin();
      cache.evict(fqn);
      mgr.commit();

      mgr.begin();
      // should now be passivated in the loader
      // don't do a cache.get() first as this will activate this node from the loader again!
View Full Code Here

Examples of org.jboss.cache.TreeCache.evict()

        Assert.assertEquals(value, cache.get(fqn, key));
        Assert.assertNull(loader.get(fqn));

        // evict from cache
        mgr.begin();
        cache.evict(fqn);
        mgr.commit();

        mgr.begin();
        // should now be passivated in the loader
        // don't do a cache.get() first as this will activate this node from the loader again!
View Full Code Here

Examples of org.jboss.cache.eviction.EvictionPolicy.evict()

      }
     
      EvictionPolicy policy = region.getEvictionPolicy();
      try
      {
         policy.evict(fqn);
      }
      catch (ContextInUseException e)
      {
         // Don't log it at any alarming level
         if (log.isTraceEnabled())
View Full Code Here

Examples of org.jboss.remoting.transport.socket.LRUPool.evict()

      assertEquals(thread1, threads.get(2));
      Thread thread2 = (Thread) threads.get(1);
     
      // Verify newest thread gets evicted.
      Thread.sleep(4000); // +12000
      clientpool.evict();
      Thread.sleep(2000); // +14000
      threads = clientpool.getContentsByAscendingAge();
      assertEquals(3, threads.size());
      assertEquals(thread0, threads.get(2));
      assertEquals(thread1, threads.get(1));
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.