Package net.openhft.collections

Examples of net.openhft.collections.SharedHashMapBuilder.create()


    AtomicLong alValue = new AtomicLong();
    AtomicLong alKey = new AtomicLong();
    int runs = 3000000;
        SharedHashMapBuilder builder = new SharedHashMapBuilder().entries(runs);
        String shmPath = System.getProperty("java.io.tmpdir") + System.getProperty("file.separator") + "SHMTestIterator1";
        SharedHashMap<String, Long> shm = builder.create(new File(shmPath), String.class, Long.class);
        /*shm.put("k1", alValue.incrementAndGet());
        shm.put("k2", alValue.incrementAndGet());
        shm.put("k3", alValue.incrementAndGet());
        shm.put("k4", alValue.incrementAndGet());
        shm.put("k5", alValue.incrementAndGet());*/
 
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.