public abstract class GridNearAtomicAbstractUpdateFuture extends GridCacheFutureAdapter<Object> implements GridCacheAtomicFuture<Object>
| Modifier and Type | Field and Description |
|---|---|
protected GridDhtAtomicCache |
cache
Cache.
|
protected GridCacheContext |
cctx
Cache context.
|
protected IgniteUuid |
deploymentLdrId
Deployment class loader id which will be used for deserialization of entries on a distributed task.
|
protected CachePartialUpdateCheckedException |
err
Error.
|
protected javax.cache.expiry.ExpiryPolicy |
expiryPlc
Expiry policy.
|
protected CacheEntryPredicate[] |
filter
Optional filter.
|
protected long |
futId
Future ID, changes when operation is remapped.
|
protected Object[] |
invokeArgs
Optional arguments for entry processor.
|
protected boolean |
keepBinary
Keep binary flag.
|
protected static IgniteLogger |
log
Logger.
|
protected static IgniteLogger |
msgLog
Logger.
|
protected boolean |
nearEnabled
Near cache flag.
|
protected GridCacheOperation |
op
Update operation.
|
protected GridCacheReturn |
opRes
Operation result.
|
protected boolean |
rawRetval
Raw return value flag.
|
protected boolean |
recovery
Recovery flag.
|
protected int |
remapCnt
Remap count.
|
protected AffinityTopologyVersion |
remapTopVer |
protected boolean |
retval
Return value require flag.
|
protected boolean |
skipStore
Skip store flag.
|
protected UUID |
subjId
Subject ID.
|
protected CacheWriteSynchronizationMode |
syncMode
Write synchronization mode.
|
protected int |
taskNameHash
Task name hash.
|
protected boolean |
topLocked
Topology locked flag.
|
protected AffinityTopologyVersion |
topVer
Current topology version.
|
| Modifier | Constructor and Description |
|---|---|
protected |
GridNearAtomicAbstractUpdateFuture(GridCacheContext cctx,
GridDhtAtomicCache cache,
CacheWriteSynchronizationMode syncMode,
GridCacheOperation op,
@Nullable Object[] invokeArgs,
boolean retval,
boolean rawRetval,
@Nullable javax.cache.expiry.ExpiryPolicy expiryPlc,
CacheEntryPredicate[] filter,
UUID subjId,
int taskNameHash,
boolean skipStore,
boolean keepBinary,
boolean recovery,
int remapCnt)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IgniteInternalFuture<Void> |
completeFuture(AffinityTopologyVersion topVer)
Gets future that will be completed when it is safe when update is finished on the given version of topology.
|
IgniteUuid |
futureId() |
void |
map()
Performs future mapping.
|
protected abstract void |
map(AffinityTopologyVersion topVer) |
protected abstract void |
mapOnTopology()
Maps future on ready topology.
|
void |
markNotTrackable()
Marks this future as non-trackable.
|
abstract void |
onDhtResponse(UUID nodeId,
GridDhtAtomicNearResponse res) |
boolean |
onDone(@Nullable Object res,
@Nullable Throwable err)
Callback to notify that future is finished.
|
abstract void |
onPrimaryResponse(UUID nodeId,
GridNearAtomicUpdateResponse res,
boolean nodeErr)
Response callback.
|
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, onNodeLeft, startTimecancel, chain, chain, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, resultprotected static IgniteLogger log
protected static IgniteLogger msgLog
protected final GridCacheContext cctx
protected final GridDhtAtomicCache cache
protected final CacheWriteSynchronizationMode syncMode
protected final GridCacheOperation op
protected final Object[] invokeArgs
protected final boolean retval
protected final boolean rawRetval
protected final javax.cache.expiry.ExpiryPolicy expiryPlc
protected final CacheEntryPredicate[] filter
protected final UUID subjId
protected final int taskNameHash
protected final boolean skipStore
protected final boolean keepBinary
protected final boolean recovery
protected final boolean nearEnabled
@GridToStringExclude protected final IgniteUuid deploymentLdrId
protected boolean topLocked
@GridToStringInclude protected int remapCnt
@GridToStringInclude protected AffinityTopologyVersion topVer
@GridToStringInclude protected AffinityTopologyVersion remapTopVer
@GridToStringInclude protected CachePartialUpdateCheckedException err
@GridToStringInclude protected long futId
protected GridCacheReturn opRes
protected GridNearAtomicAbstractUpdateFuture(GridCacheContext cctx, GridDhtAtomicCache cache, CacheWriteSynchronizationMode syncMode, GridCacheOperation op, @Nullable @Nullable Object[] invokeArgs, boolean retval, boolean rawRetval, @Nullable @Nullable javax.cache.expiry.ExpiryPolicy expiryPlc, CacheEntryPredicate[] filter, UUID subjId, int taskNameHash, boolean skipStore, boolean keepBinary, boolean recovery, int remapCnt)
cctx - Cache context.cache - Cache.syncMode - Synchronization mode.op - Operation.invokeArgs - Invoke arguments.retval - Return value flag.rawRetval - Raw return value flag.expiryPlc - Expiry policy.filter - Filter.subjId - Subject ID.taskNameHash - Task name hash.skipStore - Skip store flag.keepBinary - Keep binary flag.recovery - True if cache operation is called in recovery mode.remapCnt - Remap count.public final IgniteInternalFuture<Void> completeFuture(AffinityTopologyVersion topVer)
completeFuture in interface GridCacheAtomicFuture<Object>topVer - Topology version to finish.null if no need to wait.public final void map()
protected abstract void map(AffinityTopologyVersion topVer)
topVer - Topology version.protected abstract void mapOnTopology()
public IgniteUuid futureId()
futureId in interface GridCacheFuture<Object>public boolean trackable()
trackable in interface GridCacheFuture<Object>True if future should be tracked.public void markNotTrackable()
markNotTrackable in interface GridCacheFuture<Object>public abstract void onPrimaryResponse(UUID nodeId, GridNearAtomicUpdateResponse res, boolean nodeErr)
nodeId - Node ID.res - Update response.nodeErr - True if response was created on node failure.public abstract void onDhtResponse(UUID nodeId, GridDhtAtomicNearResponse res)
nodeId - Node ID.res - Response.public final boolean onDone(@Nullable
@Nullable Object res,
@Nullable
@Nullable 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 String toString()
toString in class GridFutureAdapter<Object>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021