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, setMemberLeftdone, run, runAndReset, setExceptionprotected Collection<V> results
public void onResult(Object result)
onResult in class DistributedTaskpublic Collection<V> get() throws ExecutionException, InterruptedException
get in interface Futureget in class DistributedTaskExecutionExceptionInterruptedExceptionpublic Collection<V> get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Futureget in class DistributedTaskInterruptedExceptionExecutionExceptionTimeoutExceptionCopyright © 2008-2013 Hazelcast, Inc. All Rights Reserved.