public class GridCacheQueryErrorFuture<T> extends GridFinishedFuture<Collection<T>> implements GridCacheQueryFuture<T>
ctx| 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
GridCacheQueryFuture.next() method without blocking. |
T |
next()
Returns next element from result set.
|
cancel, chain, concurrentNotify, concurrentNotify, duration, get, get, get, isCancelled, isDone, listenAsync, readExternal, startTime, stopListenAsync, syncNotify, syncNotify, toString, writeExternalclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcancel, isDonechain, concurrentNotify, concurrentNotify, duration, get, get, get, isCancelled, listenAsync, startTime, stopListenAsync, syncNotify, syncNotifypublic GridCacheQueryErrorFuture(GridKernalContext ctx, Throwable err)
ctx - Context.err - Error.public int available()
throws GridException
GridCacheQueryFuture.next() method without blocking.available in interface GridCacheQueryFuture<T>GridException - In case of error.@Nullable public T next() throws GridException
This is a blocking call which will wait if there are no elements available immediately.
next in interface GridCacheQueryFuture<T>null if all the elements.GridException - If failed.Copyright © 2014. All rights reserved.