public class MultiTask<V> extends DistributedTask
DistributedTask.DistributedRunnableAdapterImpl<V>, DistributedTask.Inner
Modifier and Type | Field and Description |
---|---|
protected Collection<V> |
results |
Constructor and Description |
---|
MultiTask(Callable<V> callable,
Set<Member> members) |
Modifier and Type | Method and Description |
---|---|
Collection<V> |
get() |
Collection<V> |
get(long timeout,
TimeUnit unit) |
void |
onResult(Object result) |
callable, cancel, getExecutionCallback, getInner, isCancelled, isDone, set, setExecutionCallback, setMemberLeft
done, run, runAndReset, setException
protected Collection<V> results
public void onResult(Object result)
onResult
in class DistributedTask
public Collection<V> get() throws ExecutionException, InterruptedException
get
in interface Future
get
in class DistributedTask
ExecutionException
InterruptedException
public Collection<V> get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future
get
in class DistributedTask
InterruptedException
ExecutionException
TimeoutException
Copyright © 2008-2013 Hazelcast, Inc. All Rights Reserved.