Package com.tangosol.net

Examples of com.tangosol.net.NamedCache.clear()


            List list = new ArrayList();
            for(int i = 0; i != 100; ++i) {
                list.add(String.valueOf(i));
            }
           
            cache.clear();
            getKeys(cache, list);    
            cache.clear();
            preloadKeys(cache, list);
           
           
View Full Code Here


                list.add(String.valueOf(i));
            }
           
            cache.clear();
            getKeys(cache, list);    
            cache.clear();
            preloadKeys(cache, list);
           
           
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here

      final NamedCache p4 = CacheFactory.getCache("pool-4");
     
      p1.clear();
      p2.clear();
      p3.clear();
      p4.clear();
     
      long objectCount = 50000;
      final int batchSize = 20;
      int threadCount = 4;
     
View Full Code Here

      final NamedCache p4 = CacheFactory.getCache("pool-4");
     
      p1.clear();
      p2.clear();
      p3.clear();
      p4.clear();
     
      long objectCount = 50000;
      final int batchSize = 4;
      int threadCount = 1;
     
View Full Code Here

     
      NamedCache out = CacheFactory.getCache("out-pool");
      NamedCache in = CacheFactory.getCache("in-pool");
     
      out.clear();
      in.clear();
     
      // ***
      int objectCount = 100000;     
      // ***
      int threadCount = 4;
View Full Code Here

     
      NamedCache out = CacheFactory.getCache("out-pool");
      NamedCache in = CacheFactory.getCache("in-pool");
     
      out.clear();
      in.clear();
     
      final AtomicInteger counter = new AtomicInteger();
     
      out = new ContinuousQueryCache(in, new AlwaysFilter(), new MapListener() {
     
View Full Code Here

     
      final NamedCache out = CacheFactory.getCache("out-pool");
      final NamedCache in = CacheFactory.getCache("in-pool");
     
      out.clear();
      in.clear();
     
      long objectCount = 100000;
      int threadCount = 20;
     
      final Object value = new String[]{"ABC", "EFG", "123", "890", "QWERTY"};
View Full Code Here

  @Test
  public void singlePut() {
   
    // using default coherence-cache-config.xml
    NamedCache cache = CacheFactory.getCache("A");
    cache.clear();
   
    FlashUpdater fu = new FlashUpdater(cache);
    fu.put("A", "A");
    fu.commit();
   
View Full Code Here

  @SuppressWarnings("unchecked")
  public void putAll() {
   
    // using default coherence-cache-config.xml
    NamedCache cache = CacheFactory.getCache("A");
    cache.clear();

    Map<String, String> data = new HashMap<String, String>();
    for(int i = 0; i != 1000; ++i) {
      data.put(String.valueOf(i), String.valueOf(i));
    }
View Full Code Here

  @SuppressWarnings("unchecked")
  public void multiplePutAll() {
   
    // using default coherence-cache-config.xml
    NamedCache cache = CacheFactory.getCache("A");
    cache.clear();
   
    Map<String, String> data = new HashMap<String, String>();
    for(int i = 0; i != 1000; ++i) {
      data.put(String.valueOf(i), String.valueOf(i));
    }
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.