public abstract class GridNearAtomicAbstractUpdateFuture extends GridFutureAdapter<Object> implements GridCacheAtomicFuture<Object>
AbstractQueuedSynchronizer.ConditionObject| Modifier and Type | Field and Description |
|---|---|
protected GridDhtAtomicCache |
cache
Cache.
|
protected GridCacheContext |
cctx
Cache context.
|
protected CachePartialUpdateCheckedException |
err
Error.
|
protected javax.cache.expiry.ExpiryPolicy |
expiryPlc
Expiry policy.
|
protected CacheEntryPredicate[] |
filter
Optional filter.
|
protected GridCacheVersion |
futVer
Future ID.
|
protected Object[] |
invokeArgs
Optional arguments for entry processor.
|
protected boolean |
keepBinary
Keep binary flag.
|
protected static IgniteLogger |
log
Logger.
|
protected AffinityTopologyVersion |
mapErrTopVer
Topology version when got mapping error.
|
protected static IgniteLogger |
msgLog
Logger.
|
protected Object |
mux
Mutex to synchronize state updates.
|
protected boolean |
nearEnabled
Near cache flag.
|
protected GridCacheOperation |
op
Update operation.
|
protected GridCacheReturn |
opRes
Operation result.
|
protected boolean |
rawRetval
Raw return value flag.
|
protected int |
remapCnt
Remap count.
|
protected int |
resCnt |
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 GridFutureAdapter<Void> |
topCompleteFut
Completion future for a particular topology version.
|
protected boolean |
topLocked
Topology locked flag.
|
protected AffinityTopologyVersion |
topVer
Current topology version.
|
protected GridCacheVersion |
updVer |
protected boolean |
waitTopFut
Wait for topology future flag.
|
| Modifier | Constructor and Description |
|---|---|
protected |
GridNearAtomicAbstractUpdateFuture(GridCacheContext cctx,
GridDhtAtomicCache cache,
CacheWriteSynchronizationMode syncMode,
GridCacheOperation op,
Object[] invokeArgs,
boolean retval,
boolean rawRetval,
javax.cache.expiry.ExpiryPolicy expiryPlc,
CacheEntryPredicate[] filter,
UUID subjId,
int taskNameHash,
boolean skipStore,
boolean keepBinary,
int remapCnt,
boolean waitTopFut)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IgniteUuid |
futureId() |
void |
map()
Performs future mapping.
|
protected abstract void |
map(AffinityTopologyVersion topVer) |
protected abstract void |
mapOnTopology()
Maps future on ready topology.
|
protected void |
mapSingle(UUID nodeId,
GridNearAtomicAbstractUpdateRequest req)
Maps future to single node.
|
void |
markNotTrackable()
Marks this future as non-trackable.
|
abstract void |
onResult(UUID nodeId,
GridNearAtomicUpdateResponse res,
boolean nodeErr)
Response callback.
|
protected void |
onSendError(GridNearAtomicAbstractUpdateRequest req,
IgniteCheckedException e) |
protected boolean |
storeFuture() |
boolean |
trackable() |
cancel, chain, duration, endTime, error, get, get, get, get0, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, onDone, result, startTime, toString, tryAcquireShared, tryReleaseSharedacquire, acquireInterruptibly, acquireShared, acquireSharedInterruptibly, compareAndSetState, getExclusiveQueuedThreads, getFirstQueuedThread, getQueuedThreads, getQueueLength, getSharedQueuedThreads, getState, getWaitingThreads, getWaitQueueLength, hasContended, hasQueuedPredecessors, hasQueuedThreads, hasWaiters, isHeldExclusively, isQueued, owns, release, releaseShared, setState, tryAcquire, tryAcquireNanos, tryAcquireSharedNanos, tryReleasegetExclusiveOwnerThread, setExclusiveOwnerThreadclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompleteFuture, versiononNodeLeftcancel, chain, duration, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, result, startTimeprotected 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 waitTopFut
protected final boolean nearEnabled
protected final Object mux
protected boolean topLocked
protected int remapCnt
protected AffinityTopologyVersion topVer
protected GridCacheVersion updVer
protected AffinityTopologyVersion mapErrTopVer
protected int resCnt
protected CachePartialUpdateCheckedException err
protected GridCacheVersion futVer
protected GridFutureAdapter<Void> topCompleteFut
protected GridCacheReturn opRes
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, int remapCnt, boolean waitTopFut)
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.remapCnt - Remap count.waitTopFut - Wait topology future flag.public 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>protected boolean storeFuture()
protected void mapSingle(UUID nodeId, GridNearAtomicAbstractUpdateRequest req)
nodeId - Node ID.req - Request.public abstract void onResult(UUID nodeId, GridNearAtomicUpdateResponse res, boolean nodeErr)
nodeId - Node ID.res - Update response.nodeErr - True if response was created on node failure.protected void onSendError(GridNearAtomicAbstractUpdateRequest req, IgniteCheckedException e)
req - Request.e - Error.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.8.0 Release Date : December 5 2016