T
- the type of result.public interface MonitoredFuture<T> extends Future<T>
Future
that allows the client to query
for the partial status. In the same way that Future
is
an execution handle to a Callable
, a MonitoredFuture
is an execution handle to a MonitoredCallable
or
to a DistributedCallable
. In the case where it is a
DistributedCallable
, the result returned by the future
will be the result of calling DistributedCallable.merge(java.util.List)
on each of the partition results.MonitoredCallable
Modifier and Type | Method and Description |
---|---|
T |
getStatus()
Returns the partial status of the
MonitoredCallable or
the final result if the command has completed successfully. |
T getStatus() throws ExecutionException, InterruptedException
MonitoredCallable
or
the final result if the command has completed successfully. In the event
that the command fails, this will return a status of the command following the exception.
In the case where it is a DistributedCallable
, the result returned by the future
will be the result of calling DistributedCallable.merge(java.util.List)
on the status's or final results.ExecutionException
- if there was an (I/O) error fetching the status.InterruptedException
- if interrupted while waiting for the status. Note that getStatus
does not block in the end-to-end sense, but does block waiting for network IO so it can potentially
throw InterruptedExceptionCopyright © 2016 Actian Corporation. All rights reserved.