public interface GridCacheQueryFuture<T> extends GridFuture<Collection<T>>
GridCacheQuery documentation for more information.| Modifier and Type | Method and Description |
|---|---|
int |
available()
Returns number of elements that are already fetched and can
be returned from
next() method without blocking. |
boolean |
cancel()
Cancels this query future and stop receiving any further results for the query
associated with this future.
|
boolean |
isDone()
Checks if all data is fetched by the query.
|
T |
next()
Returns next element from result set.
|
chain, concurrentNotify, concurrentNotify, duration, get, get, get, isCancelled, listenAsync, startTime, stopListenAsync, syncNotify, syncNotifyint available()
throws GridException
next() method without blocking.GridException - In case of error.@Nullable T next() throws GridException
This is a blocking call which will wait if there are no elements available immediately.
null if all the elements.GridException - If failed.boolean isDone()
isDone in interface GridFuture<Collection<T>>True if all data is fetched, false otherwise.boolean cancel()
throws GridException
cancel in interface GridFuture<Collection<T>>True if future was canceled (i.e. was not finished prior to this call).GridException - If cancellation failed.Copyright © 2014. All rights reserved.