Package com.hazelcast.map

Examples of com.hazelcast.map.AbstractEntryProcessor


            removeSubscription(map, customerId, i);
        }
    }

    private void addSubscription(IMap map, long customerId, final long productId) {
        map.executeOnKey(customerId, new AbstractEntryProcessor() {
            @Override
            public Object process(Map.Entry entry) {
                final Customer customer = (Customer) entry.getValue();
                customer.addSubscription(new Subscription(productId, false));
                entry.setValue(customer);
View Full Code Here


            }
        });
    }

    private void removeSubscription(IMap map, long customerId, final long productId) {
        map.executeOnKey(customerId, new AbstractEntryProcessor() {
            @Override
            public Object process(Map.Entry entry) {
                final Customer customer = (Customer) entry.getValue();
                customer.removeSubscription(productId);
                entry.setValue(customer);
View Full Code Here

TOP

Related Classes of com.hazelcast.map.AbstractEntryProcessor

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.