public class GridPartitionedGetFuture<K,V> extends CacheDistributedGetFutureAdapter<K,V>
CacheDistributedGetFutureAdapter.AbstractMiniFuture| Modifier and Type | Field and Description |
|---|---|
protected ClusterNode |
affNode
Explicit predefined single mapping (backup or primary).
|
protected MvccSnapshot |
mvccSnapshot |
protected String |
txLbl
Transaction label.
|
canRemap, cctx, deploymentLdrId, deserializeBinary, DFLT_MAX_REMAP_CNT, expiryPlc, forcePrimary, futId, invalidNodes, keepCacheObjects, keys, log, logRef, MAX_REMAP_CNT, needVer, readThrough, recovery, REMAP_CNT_UPD, remapCnt, skipVals, subjId, taskName, trackable| Constructor and Description |
|---|
GridPartitionedGetFuture(GridCacheContext<K,V> cctx,
Collection<KeyCacheObject> keys,
boolean readThrough,
boolean forcePrimary,
@Nullable UUID subjId,
String taskName,
boolean deserializeBinary,
boolean recovery,
@Nullable IgniteCacheExpiryPolicy expiryPlc,
boolean skipVals,
boolean needVer,
boolean keepCacheObjects,
@Nullable String txLbl,
@Nullable MvccSnapshot mvccSnapshot,
ClusterNode affNode) |
| Modifier and Type | Method and Description |
|---|---|
void |
init(AffinityTopologyVersion topVer)
Initializes future.
|
protected boolean |
isMini(IgniteInternalFuture<?> f) |
protected void |
map(Collection<KeyCacheObject> keys,
Map<ClusterNode,LinkedHashMap<KeyCacheObject,Boolean>> mapped,
AffinityTopologyVersion topVer) |
boolean |
onDone(Map<K,V> res,
Throwable err)
Callback to notify that future is finished.
|
String |
toString() |
addNodeAsInvalid, checkRetryPermits, futureId, getInvalidNodes, initLogger, markNotTrackable, onNodeLeft, onResult, partitionOwned, registrateFutureInMvccManager, serverNotFoundError, trackableduration, onDone, startTimeadd, apply, cancel, clear, future, futures, futuresCountNoLock, hasFutures, hasPending, ignoreFailure, initialized, logDebug, logError, markInitialized, processFailurechain, chain, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, reset, resultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcancel, chain, chain, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, resultprotected final String txLbl
protected final MvccSnapshot mvccSnapshot
protected final ClusterNode affNode
public GridPartitionedGetFuture(GridCacheContext<K,V> cctx, Collection<KeyCacheObject> keys, boolean readThrough, boolean forcePrimary, @Nullable @Nullable UUID subjId, String taskName, boolean deserializeBinary, boolean recovery, @Nullable @Nullable IgniteCacheExpiryPolicy expiryPlc, boolean skipVals, boolean needVer, boolean keepCacheObjects, @Nullable @Nullable String txLbl, @Nullable @Nullable MvccSnapshot mvccSnapshot, ClusterNode affNode)
cctx - Context.keys - Keys.readThrough - Read through flag.forcePrimary - If true then will force network trip to primary node even
if called on backup node.subjId - Subject ID.taskName - Task name.deserializeBinary - Deserialize binary flag.recovery - Recovery mode flag.expiryPlc - Expiry policy.skipVals - Skip values flag.needVer - If true returns values as tuples containing value and version.keepCacheObjects - Keep cache objects flag.txLbl - Transaction label.mvccSnapshot - Mvcc snapshot.public void init(AffinityTopologyVersion topVer)
topVer - Topology version.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.protected boolean isMini(IgniteInternalFuture<?> f)
isMini in class CacheDistributedGetFutureAdapter<K,V>f - Future.True if mini-future.protected void map(Collection<KeyCacheObject> keys, Map<ClusterNode,LinkedHashMap<KeyCacheObject,Boolean>> mapped, AffinityTopologyVersion topVer)
map in class CacheDistributedGetFutureAdapter<K,V>keys - Keys.mapped - Mappings to check for duplicates.topVer - Topology version on which keys should be mapped.public String toString()
toString in class CacheDistributedGetFutureAdapter<K,V>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.1 Release Date : December 20 2021