Examples of purgeExpired()


Examples of org.infinispan.container.DataContainer.purgeExpired()

            } finally {
               modApplyLatch.countDown();
            }

            DataContainer dataContainer = TestingUtil.extractComponent(cache, DataContainer.class);
            dataContainer.purgeExpired();

            Set<Integer> keys = cache.keySet();
            assertTrue("Keys not empty: " + keys, keys.isEmpty());
            Set<Map.Entry<Integer, String>> entries = cache.entrySet();
            assertTrue("Entry set not empty: " + entries, entries.isEmpty());
View Full Code Here

Examples of org.infinispan.container.DataContainer.purgeExpired()

            } finally {
               modApplyLatch.countDown();
            }

            DataContainer dataContainer = TestingUtil.extractComponent(cache, DataContainer.class);
            dataContainer.purgeExpired();

            Set<Integer> keys = cache.keySet();
            assertTrue("Keys not empty: " + keys, keys.isEmpty());
            Set<Map.Entry<Integer, String>> entries = cache.entrySet();
            assertTrue("Entry set not empty: " + entries, entries.isEmpty());
View Full Code Here

Examples of org.infinispan.container.DataContainer.purgeExpired()

      em.start();
      verify(mockService); // expect that the executor was never used!!

      // now manually process stuff.
      reset(mockDataContainer, mockCache);
      mockDataContainer.purgeExpired();
      expectLastCall().once();
      SizeGenerator sg = new SizeGenerator(500, 500, 1000, 101, 100, 99);
      expect(mockDataContainer.size()).andAnswer(sg).anyTimes();
      Iterator mockIterator = createMock(Iterator.class);
      expect(mockIterator.hasNext()).andReturn(true).anyTimes();
View Full Code Here

Examples of org.infinispan.container.DataContainer.purgeExpired()

            } finally {
               modApplyLatch.countDown();
            }

            DataContainer dataContainer = TestingUtil.extractComponent(cache, DataContainer.class);
            dataContainer.purgeExpired();

            Set<Integer> keys = cache.keySet();
            assertTrue("Keys not empty: " + keys, keys.isEmpty());
            Set<Map.Entry<Integer, String>> entries = cache.entrySet();
            assertTrue("Entry set not empty: " + entries, entries.isEmpty());
View Full Code Here

Examples of org.infinispan.container.DataContainer.purgeExpired()

            } finally {
               modApplyLatch.countDown();
            }

            DataContainer dataContainer = TestingUtil.extractComponent(cache, DataContainer.class);
            dataContainer.purgeExpired();

            Set<Integer> keys = cache.keySet();
            assertTrue("Keys not empty: " + keys, keys.isEmpty());
            Set<Map.Entry<Integer, String>> entries = cache.entrySet();
            assertTrue("Entry set not empty: " + entries, entries.isEmpty());
View Full Code Here

Examples of org.infinispan.container.DataContainer.purgeExpired()

            } finally {
               modApplyLatch.countDown();
            }

            DataContainer dataContainer = TestingUtil.extractComponent(cache, DataContainer.class);
            dataContainer.purgeExpired();

            Set<Integer> keys = cache.keySet();
            assertTrue("Keys not empty: " + keys, keys.isEmpty());
            Set<Map.Entry<Integer, String>> entries = cache.entrySet();
            assertTrue("Entry set not empty: " + entries, entries.isEmpty());
View Full Code Here

Examples of org.infinispan.loaders.CacheStore.purgeExpired()

   @Test
   public void testDoWorkOnPurgeExpired() throws Exception {
      CacheStore cs = createMock(CacheStore.class);
      PurgeExpired purge = createMock(PurgeExpired.class);
      expect(purge.getType()).andReturn(Modification.Type.PURGE_EXPIRED);
      cs.purgeExpired();
      replay(cs);
      replay(purge);

      ModificationsTransactionWorker worker =
            new ModificationsTransactionWorker(cs,
View Full Code Here

Examples of org.infinispan.loaders.CacheStore.purgeExpired()

   @Test
   public void testDoWorkOnPurgeExpired() throws Exception {
      CacheStore cs = mock(CacheStore.class);
      PurgeExpired purge = mock(PurgeExpired.class);
      when(purge.getType()).thenReturn(Modification.Type.PURGE_EXPIRED);
      cs.purgeExpired();

      ModificationsTransactionWorker worker =
            new ModificationsTransactionWorker(cs,
                                               Collections.singletonList(purge));
      worker.doWork();
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.