public final class GridNearGetFuture<K,V> extends CacheDistributedGetFutureAdapter<K,V>
CacheDistributedGetFutureAdapter.AbstractMiniFuturecanRemap, cctx, 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 |
|---|
GridNearGetFuture(GridCacheContext<K,V> cctx,
Collection<KeyCacheObject> keys,
boolean readThrough,
boolean forcePrimary,
@Nullable IgniteTxLocalEx tx,
@Nullable UUID subjId,
String taskName,
boolean deserializeBinary,
@Nullable IgniteCacheExpiryPolicy expiryPlc,
boolean skipVals,
boolean needVer,
boolean keepCacheObjects,
boolean recovery) |
| Modifier and Type | Method and Description |
|---|---|
void |
init(@Nullable 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, resultpublic GridNearGetFuture(GridCacheContext<K,V> cctx, Collection<KeyCacheObject> keys, boolean readThrough, boolean forcePrimary, @Nullable @Nullable IgniteTxLocalEx tx, @Nullable @Nullable UUID subjId, String taskName, boolean deserializeBinary, @Nullable @Nullable IgniteCacheExpiryPolicy expiryPlc, boolean skipVals, boolean needVer, boolean keepCacheObjects, boolean recovery)
cctx - Context.keys - Keys.readThrough - Read through flag.forcePrimary - If true get will be performed on primary node even if
called on backup node.tx - Transaction.subjId - Subject ID.taskName - Task name.deserializeBinary - Deserialize binary flag.expiryPlc - Expiry policy.skipVals - Skip values flag.needVer - If true returns values as tuples containing value and version.keepCacheObjects - Keep cache objects flag.public void init(@Nullable
@Nullable 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 to map on.public String toString()
toString in class CacheDistributedGetFutureAdapter<K,V>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.1 Release Date : May 21 2020