public abstract class CacheDistributedGetFutureAdapter<K,V> extends GridCompoundIdentityFuture<Map<K,V>> implements GridCacheFuture<Map<K,V>>, CacheGetFuture
AbstractQueuedSynchronizer.ConditionObject| Modifier and Type | Field and Description |
|---|---|
protected boolean |
canRemap
Flag indicating that get should be done on a locked topology version.
|
protected GridCacheContext<K,V> |
cctx
Context.
|
protected boolean |
deserializePortable
Whether to deserialize portable objects.
|
static int |
DFLT_MAX_REMAP_CNT
Default max remap count value.
|
protected IgniteCacheExpiryPolicy |
expiryPlc
Expiry policy.
|
protected boolean |
forcePrimary
Force primary flag.
|
protected IgniteUuid |
futId
Future ID.
|
protected boolean |
keepCacheObjects |
protected Collection<KeyCacheObject> |
keys
Keys.
|
protected static int |
MAX_REMAP_CNT
Maximum number of attempts to remap key to the same primary node.
|
protected boolean |
needVer |
protected boolean |
readThrough
Read through flag.
|
protected AtomicInteger |
remapCnt
Remap count.
|
protected boolean |
skipVals
Skip values flag.
|
protected UUID |
subjId
Subject ID.
|
protected String |
taskName
Task name.
|
protected boolean |
trackable
Trackable flag.
|
futs| Modifier | Constructor and Description |
|---|---|
protected |
CacheDistributedGetFutureAdapter(GridCacheContext<K,V> cctx,
Collection<KeyCacheObject> keys,
boolean readThrough,
boolean forcePrimary,
UUID subjId,
String taskName,
boolean deserializePortable,
IgniteCacheExpiryPolicy expiryPlc,
boolean skipVals,
boolean canRemap,
boolean needVer,
boolean keepCacheObjects) |
| Modifier and Type | Method and Description |
|---|---|
protected ClusterNode |
affinityNode(KeyCacheObject key,
AffinityTopologyVersion topVer)
Affinity node to send get request to.
|
protected void |
versionedResult(Map map,
KeyCacheObject key,
Object val,
GridCacheVersion ver) |
toStringadd, addAll, addAll, cancel, futures, hasPending, ignoreChildFailures, initialized, markInitialized, pending, reducer, reducerchain, duration, endTime, error, get, get, get, get0, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, onCancelled, onDone, onDone, onDone, onDone, result, startTime, 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, waitfutureId, markNotTrackable, onNodeLeft, trackablecancel, chain, duration, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, result, startTimeonResultpublic static final int DFLT_MAX_REMAP_CNT
protected static final int MAX_REMAP_CNT
protected final GridCacheContext<K,V> cctx
protected Collection<KeyCacheObject> keys
protected boolean readThrough
protected boolean forcePrimary
protected IgniteUuid futId
protected boolean trackable
protected AtomicInteger remapCnt
protected UUID subjId
protected String taskName
protected boolean deserializePortable
protected boolean skipVals
protected IgniteCacheExpiryPolicy expiryPlc
protected final boolean canRemap
protected final boolean needVer
protected final boolean keepCacheObjects
protected CacheDistributedGetFutureAdapter(GridCacheContext<K,V> cctx, Collection<KeyCacheObject> keys, boolean readThrough, boolean forcePrimary, @Nullable UUID subjId, String taskName, boolean deserializePortable, @Nullable IgniteCacheExpiryPolicy expiryPlc, boolean skipVals, boolean canRemap, boolean needVer, boolean keepCacheObjects)
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.deserializePortable - Deserialize portable flag.expiryPlc - Expiry policy.skipVals - Skip values flag.canRemap - Flag indicating whether future can be remapped on a newer topology version.needVer - If true returns values as tuples containing value and version.keepCacheObjects - Keep cache objects flag.protected final void versionedResult(Map map, KeyCacheObject key, Object val, GridCacheVersion ver)
map - Result map.key - Key.val - Value.ver - Version.protected final ClusterNode affinityNode(KeyCacheObject key, AffinityTopologyVersion topVer)
key - Key to get.topVer - Topology version.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.5.0-b1 Release Date : December 1 2015