Package com.hazelcast.client.executor.tasks

Examples of com.hazelcast.client.executor.tasks.NullCallable


    public void submitCallableWithNullResultToAllMembers_withMultiExecutionCallback() throws Exception {
        IExecutorService service = client.getExecutorService(randomString());

        final CountDownLatch responseLatch = new CountDownLatch(CLUSTER_SIZE);
        final CountDownLatch completeLatch = new CountDownLatch(CLUSTER_SIZE);
        Callable callable = new NullCallable();

        service.submitToAllMembers(callable, new MultiExecutionCallback() {
            public void onResponse(Member member, Object value) {
                if (value == null) {
                    responseLatch.countDown();
View Full Code Here

TOP

Related Classes of com.hazelcast.client.executor.tasks.NullCallable

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.