public final class GridDhtGetSingleFuture<K,V> extends GridFutureAdapter<GridCacheEntryInfo> implements GridDhtFuture<GridCacheEntryInfo>
| Constructor and Description |
|---|
GridDhtGetSingleFuture(GridCacheContext<K,V> cctx,
long msgId,
UUID reader,
KeyCacheObject key,
boolean addRdr,
boolean readThrough,
@NotNull AffinityTopologyVersion topVer,
@Nullable UUID subjId,
int taskNameHash,
@Nullable IgniteCacheExpiryPolicy expiryPlc,
boolean skipVals,
boolean recovery,
@Nullable String txLbl,
@Nullable MvccSnapshot mvccSnapshot) |
| 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, chain, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, onDone, reset, result, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcancel, chain, chain, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, resultpublic GridDhtGetSingleFuture(GridCacheContext<K,V> cctx, long msgId, UUID reader, KeyCacheObject key, boolean addRdr, boolean readThrough, @NotNull @NotNull AffinityTopologyVersion topVer, @Nullable @Nullable UUID subjId, int taskNameHash, @Nullable @Nullable IgniteCacheExpiryPolicy expiryPlc, boolean skipVals, boolean recovery, @Nullable @Nullable String txLbl, @Nullable @Nullable MvccSnapshot mvccSnapshot)
cctx - Context.msgId - Message ID.reader - Reader.key - Key.addRdr - Add reader flag.readThrough - Read through flag.topVer - Topology version.subjId - Subject ID.taskNameHash - Task name hash code.expiryPlc - Expiry policy.skipVals - Skip values flag.txLbl - Transaction label.mvccSnapshot - Mvcc snapshot.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 Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020