public final class GridNearGetFuture<K,V> extends GridCompoundIdentityFuture<Map<K,V>> implements GridCacheFuture<Map<K,V>>
AbstractQueuedSynchronizer.ConditionObject| Modifier and Type | Field and Description |
|---|---|
static int |
DFLT_MAX_REMAP_CNT
Default max remap count value.
|
ctx| Constructor and Description |
|---|
GridNearGetFuture()
Empty constructor required for
Externalizable. |
GridNearGetFuture(GridCacheContext<K,V> cctx,
Collection<? extends K> keys,
boolean reload,
boolean forcePrimary,
GridCacheTxLocalEx<K,V> tx,
GridPredicate<GridCacheEntry<K,V>>[] filters,
UUID subjId) |
| Modifier and Type | Method and Description |
|---|---|
GridUuid |
futureId() |
void |
init()
Initializes future.
|
void |
markNotTrackable()
Marks this future as non-trackable.
|
Collection<? extends GridNode> |
nodes() |
boolean |
onDone(Map<K,V> res,
Throwable err)
Callback to notify that future is finished.
|
boolean |
onNodeLeft(UUID nodeId)
Callback for when node left.
|
boolean |
trackable() |
GridCacheVersion |
version() |
toStringadd, addAll, addAll, cancel, futures, hasPending, ignoreChildFailures, initialized, markInitialized, pending, reducer, reducerchain, checkValid, concurrentNotify, concurrentNotify, duration, endTime, error, get, get, get, get0, isCancelled, isDone, isFailed, isValid, listenAsync, onCancelled, onDone, onDone, onDone, readExternal, result, startTime, stopListenAsync, syncNotify, syncNotify, tryAcquireShared, tryReleaseShared, writeExternalacquire, 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, waitcancel, chain, concurrentNotify, concurrentNotify, duration, get, get, get, isCancelled, isDone, listenAsync, startTime, stopListenAsync, syncNotify, syncNotifypublic static final int DFLT_MAX_REMAP_CNT
public GridNearGetFuture()
Externalizable.public GridNearGetFuture(GridCacheContext<K,V> cctx, Collection<? extends K> keys, boolean reload, boolean forcePrimary, @Nullable GridCacheTxLocalEx<K,V> tx, @Nullable GridPredicate<GridCacheEntry<K,V>>[] filters, @Nullable UUID subjId)
cctx - Context.keys - Keys.reload - Reload flag.forcePrimary - If true get will be performed on primary node even if
called on backup node.tx - Transaction.filters - Filters.public void init()
public boolean trackable()
trackable in interface GridCacheFuture<Map<K,V>>True if future should be tracked.public void markNotTrackable()
markNotTrackable in interface GridCacheFuture<Map<K,V>>public GridUuid futureId()
futureId in interface GridCacheFuture<Map<K,V>>public GridCacheVersion version()
version in interface GridCacheFuture<Map<K,V>>public Collection<? extends GridNode> nodes()
nodes in interface GridCacheFuture<Map<K,V>>public boolean onNodeLeft(UUID nodeId)
onNodeLeft in interface GridCacheFuture<Map<K,V>>nodeId - Left node ID.True if future cared about this node.public boolean onDone(Map<K,V> res, Throwable err)
null exception is passed in
the result value will be ignored.onDone in class GridFutureAdapter<Map<K,V>>res - Optional result.err - Optional error.True if result was set by this call.Copyright © 2014. All rights reserved.