public final class GridDhtGetSingleFuture<K,V> extends GridFutureAdapter<GridCacheEntryInfo> implements GridDhtFuture<GridCacheEntryInfo>
AbstractQueuedSynchronizer.ConditionObject| Constructor and Description |
|---|
GridDhtGetSingleFuture(GridCacheContext<K,V> cctx,
long msgId,
UUID reader,
KeyCacheObject key,
Boolean addRdr,
boolean readThrough,
IgniteTxLocalEx tx,
AffinityTopologyVersion topVer,
UUID subjId,
int taskNameHash,
IgniteCacheExpiryPolicy expiryPlc,
boolean skipVals) |
| Modifier and Type | Method and Description |
|---|---|
IgniteUuid |
futureId() |
Collection<Integer> |
invalidPartitions()
Node that future should be able to provide keys to retry before
it completes, so it's not necessary to wait till future is done
to get retry keys.
|
boolean |
onDone(GridCacheEntryInfo res,
Throwable err)
Callback to notify that future is finished.
|
GridCacheVersion |
version() |
cancel, chain, duration, endTime, error, get, get, get, get0, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, onCancelled, onDone, onDone, onDone, result, startTime, toString, 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, waitcancel, chain, duration, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, result, startTimepublic GridDhtGetSingleFuture(GridCacheContext<K,V> cctx, long msgId, UUID reader, KeyCacheObject key, Boolean addRdr, boolean readThrough, @Nullable IgniteTxLocalEx tx, @NotNull AffinityTopologyVersion topVer, @Nullable UUID subjId, int taskNameHash, @Nullable IgniteCacheExpiryPolicy expiryPlc, boolean skipVals)
cctx - Context.msgId - Message ID.reader - Reader.key - Key.addRdr - Add reader flag.readThrough - Read through flag.tx - Transaction.topVer - Topology version.subjId - Subject ID.taskNameHash - Task name hash code.expiryPlc - Expiry policy.skipVals - Skip values flag.public IgniteUuid futureId()
public GridCacheVersion version()
public boolean onDone(GridCacheEntryInfo res, Throwable err)
null exception is passed in
the result value will be ignored.onDone in class GridFutureAdapter<GridCacheEntryInfo>res - Optional result.err - Optional error.True if result was set by this call.public Collection<Integer> invalidPartitions()
invalidPartitions in interface GridDhtFuture<GridCacheEntryInfo>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.7.0 Release Date : August 1 2016