Package com.hazelcast.core

Examples of com.hazelcast.core.IMap.addInterceptor()


        HazelcastInstance instance1 = nodeFactory.newHazelcastInstance(cfg);
        IMap map = instance1.getMap("map");
        for (int i = 0; i < 100; i++) {
            map.put(i,i);
        }
        map.addInterceptor(new NegativeInterceptor());
        for (int i = 0; i < 100; i++) {
            assertEquals(i*-1, map.get(i));
        }
        HazelcastInstance instance2 = nodeFactory.newHazelcastInstance(cfg);
        for (int i = 0; i < 100; 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.