com.hazelcast.core
Class MultiTask<V>
java.lang.Object
java.util.concurrent.FutureTask<V>
com.hazelcast.core.DistributedTask
com.hazelcast.core.MultiTask<V>
- All Implemented Interfaces:
- Runnable, Future, RunnableFuture
public class MultiTask<V>
- extends DistributedTask
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
results
protected Collection<V> results
MultiTask
public MultiTask(Callable<V> callable,
Set<Member> members)
onResult
public void onResult(Object result)
- Overrides:
onResult
in class DistributedTask
get
public Collection<V> get()
throws ExecutionException,
InterruptedException
- Specified by:
get
in interface Future
- Overrides:
get
in class DistributedTask
- Throws:
ExecutionException
InterruptedException
get
public Collection<V> get(long timeout,
TimeUnit unit)
throws InterruptedException,
ExecutionException,
TimeoutException
- Specified by:
get
in interface Future
- Overrides:
get
in class DistributedTask
- Throws:
InterruptedException
ExecutionException
TimeoutException
Copyright © 2008-2012 Hazel Ltd. All Rights Reserved.