public class GridCacheDistributedQueryFuture<K,V,R> extends GridCacheQueryFutureAdapter<K,V,R>
AbstractQueuedSynchronizer.ConditionObject| Modifier | Constructor and Description |
|---|---|
protected |
GridCacheDistributedQueryFuture(GridCacheContext<K,V> ctx,
long reqId,
GridCacheQueryBean qry,
Iterable<ClusterNode> nodes) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cancelQuery() |
protected void |
loadAllPages()
Loads all left pages.
|
protected void |
loadPage()
Loads next page.
|
boolean |
onCancelled()
Callback to notify that future is cancelled.
|
boolean |
onDone(Collection<R> res,
Throwable err)
Callback to notify that future is finished.
|
protected void |
onNodeLeft(UUID nodeId) |
protected boolean |
onPage(UUID nodeId,
boolean last) |
void |
onTimeout()
Timeout callback.
|
available, cancel, endTime, enqueue, get, get, next, nextPage, nextPage, onPage, printMemoryStats, query, timeoutId, toStringchain, duration, error, get, get0, ignoreInterrupts, isCancelled, isDone, isFailed, listen, onDone, onDone, onDone, result, startTime, tryAcquireShared, tryReleaseSharedacquire, acquireInterruptibly, acquireShared, acquireSharedInterruptibly, compareAndSetState, getExclusiveQueuedThreads, getFirstQueuedThread, getQueuedThreads, getQueueLength, getSharedQueuedThreads, getState, getWaitingThreads, getWaitQueueLength, hasContended, hasQueuedPredecessors, hasQueuedThreads, hasWaiters, isHeldExclusively, isQueued, owns, release, releaseShared, setState, tryAcquire, tryAcquireNanos, tryAcquireSharedNanos, tryReleasegetExclusiveOwnerThread, setExclusiveOwnerThreadclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisDonechain, duration, error, get, isCancelled, listen, result, startTimeprotected GridCacheDistributedQueryFuture(GridCacheContext<K,V> ctx, long reqId, GridCacheQueryBean qry, Iterable<ClusterNode> nodes)
ctx - Cache context.reqId - Request ID.qry - Query.nodes - Nodes.protected void cancelQuery()
throws IgniteCheckedException
cancelQuery in class GridCacheQueryFutureAdapter<K,V,R>IgniteCheckedException - In case of error.protected void onNodeLeft(UUID nodeId)
onNodeLeft in class GridCacheQueryFutureAdapter<K,V,R>nodeId - Removed or failed node Id.protected boolean onPage(UUID nodeId, boolean last)
onPage in class GridCacheQueryFutureAdapter<K,V,R>nodeId - Sender node id.last - Whether page is last.protected void loadPage()
loadPage in class GridCacheQueryFutureAdapter<K,V,R>protected void loadAllPages()
throws IgniteInterruptedCheckedException
loadAllPages in class GridCacheQueryFutureAdapter<K,V,R>IgniteInterruptedCheckedException - If thread is interrupted.public boolean onDone(Collection<R> res, Throwable err)
null exception is passed in
the result value will be ignored.onDone in class GridCacheQueryFutureAdapter<K,V,R>res - Optional result.err - Optional error.True if result was set by this call.public boolean onCancelled()
onCancelled in class GridFutureAdapter<Collection<R>>True if cancel flag was set by this call.public void onTimeout()
onTimeout in interface GridTimeoutObjectonTimeout in class GridCacheQueryFutureAdapter<K,V,R>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.1.0-incubating Release Date : May 20 2015