Package com.hazelcast.map.operation

Examples of com.hazelcast.map.operation.IsEmptyOperationFactory


            //TODO: We don't need to wait for all to complete, as soon as there is one future returning to false
            //we can stop. Also there is no need to make use of isEmptyOperation; just use size. This reduces the
            //amount of code.
            Map<Integer, Object> results = nodeEngine.getOperationService()
                    .invokeOnAllPartitions(SERVICE_NAME,
                            new IsEmptyOperationFactory(name));
            for (Object result : results.values()) {
                if (!(Boolean) getService().getMapServiceContext().toObject(result)) {
                    return false;
                }
            }
View Full Code Here


        name = reader.readUTF("n");
    }

    @Override
    protected OperationFactory createOperationFactory() {
        return new IsEmptyOperationFactory(name);
    }
View Full Code Here

TOP

Related Classes of com.hazelcast.map.operation.IsEmptyOperationFactory

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.