public class GridNearAtomicUpdateFuture extends GridFutureAdapter<Object> implements GridCacheAtomicFuture<Object>
AbstractQueuedSynchronizer.ConditionObject| Modifier and Type | Field and Description |
|---|---|
protected static IgniteLogger |
log
Logger.
|
| Constructor and Description |
|---|
GridNearAtomicUpdateFuture(GridCacheContext cctx,
GridDhtAtomicCache cache,
CacheWriteSynchronizationMode syncMode,
GridCacheOperation op,
Collection<?> keys,
Collection<?> vals,
Object[] invokeArgs,
Collection<GridCacheDrInfo> conflictPutVals,
Collection<GridCacheVersion> conflictRmvVals,
boolean retval,
boolean rawRetval,
javax.cache.expiry.ExpiryPolicy expiryPlc,
CacheEntryPredicate[] filter,
UUID subjId,
int taskNameHash,
boolean skipStore,
int remapCnt,
boolean waitTopFut) |
| 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() |
Collection<?> |
keys() |
void |
map()
Performs future mapping.
|
void |
markNotTrackable()
Marks this future as non-trackable.
|
Collection<? extends ClusterNode> |
nodes() |
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,
GridNearAtomicUpdateResponse res)
Response callback.
|
String |
toString() |
boolean |
trackable() |
GridCacheVersion |
version() |
cancel, chain, duration, endTime, error, get, get, get, get0, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, onCancelled, onDone, onDone, onDone, result, startTime, 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, waitcancel, chain, duration, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, result, startTimeprotected static IgniteLogger log
public GridNearAtomicUpdateFuture(GridCacheContext cctx, GridDhtAtomicCache cache, CacheWriteSynchronizationMode syncMode, GridCacheOperation op, Collection<?> keys, @Nullable Collection<?> vals, @Nullable Object[] invokeArgs, @Nullable Collection<GridCacheDrInfo> conflictPutVals, @Nullable Collection<GridCacheVersion> conflictRmvVals, boolean retval, boolean rawRetval, @Nullable javax.cache.expiry.ExpiryPolicy expiryPlc, CacheEntryPredicate[] filter, UUID subjId, int taskNameHash, boolean skipStore, int remapCnt, boolean waitTopFut)
cctx - Cache context.cache - Cache instance.syncMode - Write synchronization mode.op - Update operation.keys - Keys to update.vals - Values or transform closure.invokeArgs - Optional arguments for entry processor.conflictPutVals - Conflict put values (optional).conflictRmvVals - Conflict remove values (optional).retval - Return value require flag.rawRetval - True if should return GridCacheReturn as future result.expiryPlc - Expiry policy explicitly specified for cache operation.filter - Entry filter.subjId - Subject ID.taskNameHash - Task name hash code.skipStore - Skip store flag.remapCnt - Maximum number of retries.waitTopFut - If false does not wait for affinity change future.public IgniteUuid futureId()
futureId in interface GridCacheFuture<Object>public GridCacheVersion version()
version in interface GridCacheFuture<Object>public Collection<? extends ClusterNode> nodes()
nodes in interface GridCacheFuture<Object>public Collection<?> keys()
keys in interface GridCacheAtomicFuture<Object>public boolean onNodeLeft(UUID nodeId)
onNodeLeft in interface GridCacheFuture<Object>nodeId - Left node ID.True if future cared about this node.public boolean trackable()
trackable in interface GridCacheFuture<Object>True if future should be tracked.public void markNotTrackable()
markNotTrackable in interface GridCacheFuture<Object>public void map()
public IgniteInternalFuture<Void> completeFuture(AffinityTopologyVersion topVer)
completeFuture in interface GridCacheAtomicFuture<Object>topVer - Topology version to finish.null if no need to wait.public boolean onDone(@Nullable Object res, @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 void onResult(UUID nodeId, GridNearAtomicUpdateResponse res)
nodeId - Node ID.res - Update response.public String toString()
toString in class GridFutureAdapter<Object>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.4.0 Release Date : September 24 2015