public abstract class GridNearReadRepairAbstractFuture extends GridFutureAdapter<Map<KeyCacheObject,EntryGetResult>>
| Modifier and Type | Field and Description |
|---|---|
protected GridCacheContext<KeyCacheObject,EntryGetResult> |
ctx
Context.
|
protected boolean |
deserializeBinary
Deserialize binary flag.
|
static int |
DFLT_MAX_REMAP_CNT
Default max remap count value.
|
protected IgniteCacheExpiryPolicy |
expiryPlc
Expiry policy flag.
|
protected Map<ClusterNode,GridPartitionedGetFuture<KeyCacheObject,EntryGetResult>> |
futs
Affinity node's get futures.
|
protected Collection<KeyCacheObject> |
keys
Context.
|
protected static int |
MAX_REMAP_CNT
Maximum number of attempts to remap key to the same primary node.
|
protected boolean |
readThrough
Read through flag.
|
protected boolean |
recovery
Recovery flag.
|
protected static AtomicIntegerFieldUpdater<GridNearReadRepairAbstractFuture> |
REMAP_CNT_UPD
Remap count updater.
|
protected int |
remapCnt
Remap count.
|
protected String |
taskName
Task name.
|
protected IgniteInternalTx |
tx
Tx.
|
| Modifier | Constructor and Description |
|---|---|
protected |
GridNearReadRepairAbstractFuture(AffinityTopologyVersion topVer,
GridCacheContext<KeyCacheObject,EntryGetResult> ctx,
Collection<KeyCacheObject> keys,
boolean readThrough,
String taskName,
boolean deserializeBinary,
boolean recovery,
IgniteCacheExpiryPolicy expiryPlc,
IgniteInternalTx tx)
Creates a new instance of GridNearReadRepairAbstractFuture.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
map(AffinityTopologyVersion topVer) |
protected void |
onResult(IgniteInternalFuture<Map<KeyCacheObject,EntryGetResult>> finished)
Collects results of each 'get' future and prepares an overall result of the operation.
|
protected abstract void |
reduce()
Reduces fut's results.
|
cancel, chain, chain, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, onDone, onDone, reset, result, toStringpublic static final int DFLT_MAX_REMAP_CNT
protected static final int MAX_REMAP_CNT
protected static final AtomicIntegerFieldUpdater<GridNearReadRepairAbstractFuture> REMAP_CNT_UPD
protected volatile int remapCnt
protected final Map<ClusterNode,GridPartitionedGetFuture<KeyCacheObject,EntryGetResult>> futs
protected final GridCacheContext<KeyCacheObject,EntryGetResult> ctx
protected final Collection<KeyCacheObject> keys
protected final boolean readThrough
protected final String taskName
protected final boolean deserializeBinary
protected final boolean recovery
protected final IgniteCacheExpiryPolicy expiryPlc
protected final IgniteInternalTx tx
protected GridNearReadRepairAbstractFuture(AffinityTopologyVersion topVer, GridCacheContext<KeyCacheObject,EntryGetResult> ctx, Collection<KeyCacheObject> keys, boolean readThrough, String taskName, boolean deserializeBinary, boolean recovery, IgniteCacheExpiryPolicy expiryPlc, IgniteInternalTx tx)
topVer - Topology version.ctx - Cache context.keys - Keys.readThrough - Read-through flag.taskName - Task name.deserializeBinary - Deserialize binary flag.recovery - Partition recovery flag.expiryPlc - Expiry policy.tx - Transaction. Can be null in case of atomic cache.protected void map(AffinityTopologyVersion topVer)
topVer - Affinity topology version.protected void onResult(IgniteInternalFuture<Map<KeyCacheObject,EntryGetResult>> finished)
finished - Future represents a result of GET operation.protected abstract void reduce()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020