public class GridPartitionedSingleGetFuture extends GridCacheFutureAdapter<Object> implements GridCacheFuture<Object>, CacheGetFuture, IgniteDiagnosticAware
| 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 canRemap,
boolean needVer,
boolean keepCacheObjects,
boolean recovery) |
| 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, resultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitduration, startTimecancel, chain, chain, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, resultpublic GridPartitionedSingleGetFuture(GridCacheContext cctx, KeyCacheObject key, AffinityTopologyVersion topVer, 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.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.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 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 Fabric : ver. 2.2.0 Release Date : September 15 2017