public class GridCacheQueryErrorFuture<T> extends GridFinishedFuture<Collection<T>> implements CacheQueryFuture<T>
| Constructor and Description |
|---|
GridCacheQueryErrorFuture(GridKernalContext ctx,
Throwable err) |
| Modifier and Type | Method and Description |
|---|---|
int |
available()
Returns number of elements that are already fetched and can
be returned from
CacheQueryFuture.next() method without blocking. |
T |
next()
Returns next element from result set.
|
cancel, chain, duration, error, get, get, get, isCancelled, isDone, listen, result, startTime, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcancel, isDonepublic GridCacheQueryErrorFuture(GridKernalContext ctx, Throwable err)
ctx - Context.err - Error.public int available()
throws IgniteCheckedException
CacheQueryFuture.next() method without blocking.available in interface CacheQueryFuture<T>IgniteCheckedException - In case of error.@Nullable public T next() throws IgniteCheckedException
This is a blocking call which will wait if there are no elements available immediately.
next in interface CacheQueryFuture<T>null if all the elements have been fetched.IgniteCheckedException - If failed.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.2.0-incubating Release Date : June 16 2015