public abstract class CacheDistributedGetFutureAdapter<K,V> extends GridCacheCompoundIdentityFuture<Map<K,V>> implements GridCacheFuture<Map<K,V>>, CacheGetFuture
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 |
deserializeBinary
Whether to deserialize binary 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 boolean |
recovery |
protected static AtomicIntegerFieldUpdater<CacheDistributedGetFutureAdapter> |
REMAP_CNT_UPD
Remap count updater.
|
protected int |
remapCnt
Remap count.
|
protected boolean |
skipVals
Skip values flag.
|
protected UUID |
subjId
Subject ID.
|
protected String |
taskName
Task name.
|
protected boolean |
trackable
Trackable flag.
|
Modifier | Constructor and Description |
---|---|
protected |
CacheDistributedGetFutureAdapter(GridCacheContext<K,V> cctx,
Collection<KeyCacheObject> keys,
boolean readThrough,
boolean forcePrimary,
UUID subjId,
String taskName,
boolean deserializeBinary,
IgniteCacheExpiryPolicy expiryPlc,
boolean skipVals,
boolean canRemap,
boolean needVer,
boolean keepCacheObjects,
boolean recovery) |
Modifier and Type | Method and Description |
---|---|
protected ClusterNode |
affinityNode(List<ClusterNode> affNodes)
Affinity node to send get request to.
|
protected boolean |
partitionOwned(int part) |
protected ClusterTopologyServerNotFoundException |
serverNotFoundError(AffinityTopologyVersion topVer) |
duration, onDone, startTime
toString
add, apply, cancel, clear, future, futures, futuresCountNoLock, hasFutures, hasPending, ignoreFailure, initialized, markInitialized
chain, chain, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, onDone, result
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
duration, futureId, markNotTrackable, onNodeLeft, startTime, trackable
cancel, chain, chain, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, result
onResult
public static final int DFLT_MAX_REMAP_CNT
protected static final int MAX_REMAP_CNT
protected static final AtomicIntegerFieldUpdater<CacheDistributedGetFutureAdapter> REMAP_CNT_UPD
protected final GridCacheContext<K,V> cctx
protected Collection<KeyCacheObject> keys
protected boolean readThrough
protected boolean forcePrimary
protected IgniteUuid futId
protected boolean trackable
protected volatile int remapCnt
protected UUID subjId
protected String taskName
protected boolean deserializeBinary
protected boolean skipVals
protected IgniteCacheExpiryPolicy expiryPlc
protected boolean canRemap
protected final boolean needVer
protected final boolean keepCacheObjects
protected final boolean recovery
protected CacheDistributedGetFutureAdapter(GridCacheContext<K,V> cctx, Collection<KeyCacheObject> keys, boolean readThrough, boolean forcePrimary, @Nullable UUID subjId, String taskName, boolean deserializeBinary, @Nullable IgniteCacheExpiryPolicy expiryPlc, boolean skipVals, boolean canRemap, boolean needVer, boolean keepCacheObjects, boolean recovery)
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.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 ClusterNode affinityNode(List<ClusterNode> affNodes)
affNodes
- All affinity nodes.protected final boolean partitionOwned(int part)
part
- Partition.True
if partition is in owned state.protected final ClusterTopologyServerNotFoundException serverNotFoundError(AffinityTopologyVersion topVer)
topVer
- Topology version.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017