public class GridPartitionedSingleGetFuture extends GridCacheFutureAdapter<Object> implements CacheGetFuture, IgniteDiagnosticAware
| Modifier and Type | Field and Description |
|---|---|
static int |
DFLT_MAX_REMAP_CNT
Default max remap count value.
|
protected static int |
MAX_REMAP_CNT
Maximum number of attempts to remap key to the same primary node.
|
protected MvccSnapshot |
mvccSnapshot |
protected static AtomicIntegerFieldUpdater<GridPartitionedSingleGetFuture> |
REMAP_CNT_UPD
Remap count updater.
|
protected int |
remapCnt
Remap count.
|
| Constructor and Description |
|---|
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,
String txLbl,
@Nullable MvccSnapshot mvccSnapshot) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDiagnosticRequest(IgniteDiagnosticPrepareContext ctx) |
IgniteUuid |
futureId() |
protected Set<ClusterNode> |
getInvalidNodes() |
void |
init()
Initialize future.
|
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, waitcancel, chain, chain, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, resultpublic static final int DFLT_MAX_REMAP_CNT
protected static final int MAX_REMAP_CNT
protected static final AtomicIntegerFieldUpdater<GridPartitionedSingleGetFuture> REMAP_CNT_UPD
protected final MvccSnapshot mvccSnapshot
protected volatile int remapCnt
public GridPartitionedSingleGetFuture(GridCacheContext cctx, KeyCacheObject key, AffinityTopologyVersion topVer, boolean readThrough, boolean forcePrimary, @Nullable @Nullable UUID subjId, String taskName, boolean deserializeBinary, @Nullable @Nullable IgniteCacheExpiryPolicy expiryPlc, boolean skipVals, boolean needVer, boolean keepCacheObjects, boolean recovery, String txLbl, @Nullable @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.txLbl - Transaction label.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 - Response.protected Set<ClusterNode> getInvalidNodes()
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.9.1 Release Date : December 9 2020