public class GridPartitionedGetFuture<K,V> extends CacheDistributedGetFutureAdapter<K,V>
canRemap, cctx, deserializeBinary, DFLT_MAX_REMAP_CNT, expiryPlc, forcePrimary, futId, keepCacheObjects, keys, 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,
UUID subjId,
String taskName,
boolean deserializeBinary,
boolean recovery,
IgniteCacheExpiryPolicy expiryPlc,
boolean skipVals,
boolean needVer,
boolean keepCacheObjects) |
| Modifier and Type | Method and Description |
|---|---|
IgniteUuid |
futureId() |
void |
init(AffinityTopologyVersion topVer)
Initializes future.
|
void |
markNotTrackable()
Marks this future as non-trackable.
|
boolean |
onDone(Map<K,V> res,
Throwable err)
Callback to notify that future is finished.
|
boolean |
onNodeLeft(UUID nodeId)
Callback for when node left.
|
void |
onResult(UUID nodeId,
GridNearGetResponse res) |
String |
toString() |
boolean |
trackable() |
affinityNode, partitionOwned, serverNotFoundErrorduration, 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, waitduration, startTimecancel, chain, chain, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, resultpublic 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)
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.public void init(AffinityTopologyVersion topVer)
topVer - Topology version.public boolean trackable()
True if future should be tracked.public void markNotTrackable()
public IgniteUuid futureId()
public boolean onNodeLeft(UUID nodeId)
nodeId - Left node ID.True if future cared about this node.public void onResult(UUID nodeId, GridNearGetResponse res)
nodeId - Sender.res - Result.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.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.4.0 Release Date : March 5 2018