public class GridNearAtomicUpdateFuture<K,V> extends GridFutureAdapter<Object> implements GridCacheAtomicFuture<K,Object>
AbstractQueuedSynchronizer.ConditionObject| Modifier and Type | Field and Description |
|---|---|
protected static GridLogger |
log
Logger.
|
ctx| Constructor and Description |
|---|
GridNearAtomicUpdateFuture()
Empty constructor required by
Externalizable. |
GridNearAtomicUpdateFuture(GridCacheContext<K,V> cctx,
GridDhtAtomicCache<K,V> cache,
GridCacheWriteSynchronizationMode syncMode,
GridCacheOperation op,
Collection<? extends K> keys,
Collection<?> vals,
Collection<GridCacheDrInfo<V>> drPutVals,
Collection<GridCacheVersion> drRmvVals,
boolean retval,
boolean rawRetval,
GridCacheEntryEx<K,V> cached,
long ttl,
GridPredicate<GridCacheEntry<K,V>>[] filter,
UUID subjId) |
| Modifier and Type | Method and Description |
|---|---|
GridUuid |
futureId() |
Collection<? extends K> |
keys() |
void |
map()
Performs future mapping.
|
void |
markNotTrackable()
Marks this future as non-trackable.
|
Collection<? extends GridNode> |
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<K,V> res)
Response callback.
|
long |
topologyVersion() |
String |
toString() |
boolean |
trackable() |
GridCacheVersion |
version() |
boolean |
waitForPartitionExchange() |
cancel, chain, checkValid, concurrentNotify, concurrentNotify, duration, endTime, error, get, get, get, get0, isCancelled, isDone, isFailed, isValid, listenAsync, onCancelled, onDone, onDone, onDone, readExternal, result, startTime, stopListenAsync, syncNotify, syncNotify, tryAcquireShared, tryReleaseShared, writeExternalacquire, 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, concurrentNotify, concurrentNotify, duration, get, get, get, isCancelled, isDone, listenAsync, startTime, stopListenAsync, syncNotify, syncNotifyprotected static GridLogger log
public GridNearAtomicUpdateFuture()
Externalizable.public GridNearAtomicUpdateFuture(GridCacheContext<K,V> cctx, GridDhtAtomicCache<K,V> cache, GridCacheWriteSynchronizationMode syncMode, GridCacheOperation op, Collection<? extends K> keys, @Nullable Collection<?> vals, @Nullable Collection<GridCacheDrInfo<V>> drPutVals, @Nullable Collection<GridCacheVersion> drRmvVals, boolean retval, boolean rawRetval, @Nullable GridCacheEntryEx<K,V> cached, long ttl, GridPredicate<GridCacheEntry<K,V>>[] filter, UUID subjId)
cctx - Cache context.cache - Cache instance.op - Update operation.syncMode - Write synchronization mode.keys - Keys to update.vals - Values or transform closure.drPutVals - DR put values (optional).drRmvVals - DR remove values (optional).retval - Return value require flag.rawRetval - True if should return GridCacheReturn as future result.cached - Cached entry if keys size is 1.ttl - Time to live.filter - Entry filter.public GridUuid futureId()
futureId in interface GridCacheFuture<Object>public GridCacheVersion version()
version in interface GridCacheFuture<Object>public Collection<? extends GridNode> nodes()
nodes in interface GridCacheFuture<Object>public boolean waitForPartitionExchange()
waitForPartitionExchange in interface GridCacheAtomicFuture<K,Object>True if partition exchange should wait for this future to complete.public long topologyVersion()
topologyVersion in interface GridCacheAtomicFuture<K,Object>public Collection<? extends K> keys()
keys in interface GridCacheAtomicFuture<K,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 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<K,V> res)
nodeId - Node ID.res - Update response.public String toString()
toString in class GridFutureAdapter<Object>Copyright © 2014. All rights reserved.