public final class GridDhtGetFuture<K,V> extends GridCompoundIdentityFuture<Collection<GridCacheEntryInfo>> implements GridDhtFuture<Collection<GridCacheEntryInfo>>
| Constructor and Description |
|---|
GridDhtGetFuture(GridCacheContext<K,V> cctx,
long msgId,
UUID reader,
Map<KeyCacheObject,Boolean> keys,
boolean readThrough,
AffinityTopologyVersion topVer,
UUID subjId,
int taskNameHash,
IgniteCacheExpiryPolicy expiryPlc,
boolean skipVals,
boolean recovery,
boolean addReaders) |
| 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(Collection<GridCacheEntryInfo> res,
Throwable err)
Callback to notify that future is finished.
|
GridCacheVersion |
version() |
toStringadd, apply, cancel, clear, future, futures, futuresCountNoLock, hasFutures, hasPending, ignoreFailure, initialized, markInitializedchain, chain, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, onDone, resultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcancel, chain, chain, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, resultpublic GridDhtGetFuture(GridCacheContext<K,V> cctx, long msgId, UUID reader, Map<KeyCacheObject,Boolean> keys, boolean readThrough, @NotNull AffinityTopologyVersion topVer, @Nullable UUID subjId, int taskNameHash, @Nullable IgniteCacheExpiryPolicy expiryPlc, boolean skipVals, boolean recovery, boolean addReaders)
cctx - Context.msgId - Message ID.reader - Reader.keys - Keys.readThrough - Read through flag.topVer - Topology version.subjId - Subject ID.taskNameHash - Task name hash code.expiryPlc - Expiry policy.skipVals - Skip values flag.public Collection<Integer> invalidPartitions()
invalidPartitions in interface GridDhtFuture<Collection<GridCacheEntryInfo>>public IgniteUuid futureId()
public GridCacheVersion version()
public boolean onDone(Collection<GridCacheEntryInfo> res, Throwable err)
null exception is passed in
the result value will be ignored.onDone in class GridFutureAdapter<Collection<GridCacheEntryInfo>>res - Optional result.err - Optional error.True if result was set by this call.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.2.0 Release Date : September 15 2017