Package sample

Examples of sample.DomainObjKey


     
      if (map instanceof NearCache) {

          println("Warming up near cache");
          for(long i = rangeFinish-1; i >= rangeStart; --i) {
              map.get(new DomainObjKey(i));
          }
      }
     
      println("Starting access threads");
View Full Code Here


                int key = rnd.nextInt(maxKey);
                key /= segmentCount;
                key = key * segmentCount + segmentNo;

                if (rnd.nextInt(100) > read2write) {
                    Object obj = cache.get(new DomainObjKey(key));
                    cache.put(new DomainObjKey(key), obj);
                    WRITE_OPS.incrementAndGet();
                }
                else {
//                    synchronized(cache) {
                        Object obj = cache.get(new DomainObjKey(key));
//                    }
                    READ_OPS.incrementAndGet();
                }
            }
        }
View Full Code Here

TOP

Related Classes of sample.DomainObjKey

Copyright © 2018 www.massapicom. 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.