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,
AffinityTopologyVersion topVer,
boolean readThrough,
boolean forcePrimary,
UUID subjId,
String taskName,
boolean deserializeBinary,
boolean recovery,
IgniteCacheExpiryPolicy expiryPlc,
boolean skipVals,
boolean canRemap,
boolean needVer,
boolean keepCacheObjects) |
| Modifier and Type | Method and Description |
|---|---|
IgniteUuid |
futureId() |
void |
init()
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, markInitializedchain, chain, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, 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, AffinityTopologyVersion topVer, boolean readThrough, boolean forcePrimary, @Nullable UUID subjId, String taskName, boolean deserializeBinary, boolean recovery, @Nullable IgniteCacheExpiryPolicy expiryPlc, boolean skipVals, boolean canRemap, boolean needVer, boolean keepCacheObjects)
cctx - Context.keys - Keys.topVer - Topology version.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.public void init()
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.1.0 Release Date : July 20 2017