public class GridPartitionedSingleGetFuture extends GridCacheFutureAdapter<Object> implements GridCacheFuture<Object>, CacheGetFuture, IgniteDiagnosticAware
| Modifier and Type | Field and Description |
|---|---|
protected MvccSnapshot |
mvccSnapshot |
| Constructor and Description |
|---|
GridPartitionedSingleGetFuture(GridCacheContext cctx,
KeyCacheObject key,
AffinityTopologyVersion topVer,
boolean readThrough,
boolean forcePrimary,
UUID subjId,
String taskName,
boolean deserializeBinary,
IgniteCacheExpiryPolicy expiryPlc,
boolean skipVals,
boolean needVer,
boolean keepCacheObjects,
boolean recovery,
MvccSnapshot mvccSnapshot) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDiagnosticRequest(IgniteDiagnosticPrepareContext ctx) |
IgniteUuid |
futureId() |
void |
init() |
void |
markNotTrackable()
Marks this future as non-trackable.
|
boolean |
onDone(Object 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) |
void |
onResult(UUID nodeId,
GridNearSingleGetResponse res) |
String |
toString() |
boolean |
trackable() |
duration, onDone, startTimecancel, chain, 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, resultprotected final MvccSnapshot mvccSnapshot
public GridPartitionedSingleGetFuture(GridCacheContext cctx, KeyCacheObject key, AffinityTopologyVersion topVer, boolean readThrough, boolean forcePrimary, @Nullable UUID subjId, String taskName, boolean deserializeBinary, @Nullable IgniteCacheExpiryPolicy expiryPlc, boolean skipVals, boolean needVer, boolean keepCacheObjects, boolean recovery, @Nullable MvccSnapshot mvccSnapshot)
cctx - Context.key - Key.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.needVer - If true returns values as tuples containing value and version.keepCacheObjects - Keep cache objects flag.public void init()
public void onResult(UUID nodeId, GridNearSingleGetResponse res)
nodeId - Node ID.res - Result.public void onResult(UUID nodeId, GridNearGetResponse res)
onResult in interface CacheGetFuturenodeId - Node ID.res - Result.public IgniteUuid futureId()
futureId in interface GridCacheFuture<Object>public boolean onNodeLeft(UUID nodeId)
onNodeLeft in interface GridCacheFuture<Object>nodeId - Left node ID.True if future cared about this node.public boolean onDone(Object res, Throwable err)
null exception is passed in
the result value will be ignored.onDone in class GridFutureAdapter<Object>res - Optional result.err - Optional error.True if result was set by this call.public boolean trackable()
trackable in interface GridCacheFuture<Object>True if future should be tracked.public void markNotTrackable()
markNotTrackable in interface GridCacheFuture<Object>public void addDiagnosticRequest(IgniteDiagnosticPrepareContext ctx)
addDiagnosticRequest in interface IgniteDiagnosticAwarectx - Context.public String toString()
toString in class GridFutureAdapter<Object>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019