public class GridNearAtomicUpdateFuture<K,V> extends GridFutureAdapter<Object> implements GridCacheAtomicFuture<K,Object>
AbstractQueuedSynchronizer.ConditionObject| Modifier and Type | Field and Description |
|---|---|
protected static IgniteLogger |
log
Logger.
|
ctx| Constructor and Description |
|---|
GridNearAtomicUpdateFuture()
Empty constructor required by
Externalizable. |
GridNearAtomicUpdateFuture(GridCacheContext<K,V> cctx,
GridDhtAtomicCache<K,V> cache,
CacheWriteSynchronizationMode syncMode,
GridCacheOperation op,
Collection<? extends K> keys,
Collection<?> vals,
Object[] invokeArgs,
Collection<GridCacheDrInfo<V>> drPutVals,
Collection<GridCacheVersion> drRmvVals,
boolean retval,
boolean rawRetval,
GridCacheEntryEx<K,V> cached,
javax.cache.expiry.ExpiryPolicy expiryPlc,
IgnitePredicate<javax.cache.Cache.Entry<K,V>>[] filter,
UUID subjId,
int taskNameHash) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkTimeout(long timeout)
Checks if timeout occurred.
|
IgniteUuid |
futureId() |
Collection<? extends K> |
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<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 IgniteLogger log
public GridNearAtomicUpdateFuture()
Externalizable.public GridNearAtomicUpdateFuture(GridCacheContext<K,V> cctx, GridDhtAtomicCache<K,V> cache, CacheWriteSynchronizationMode syncMode, GridCacheOperation op, Collection<? extends K> keys, @Nullable Collection<?> vals, @Nullable Object[] invokeArgs, @Nullable Collection<GridCacheDrInfo<V>> drPutVals, @Nullable Collection<GridCacheVersion> drRmvVals, boolean retval, boolean rawRetval, @Nullable GridCacheEntryEx<K,V> cached, @Nullable javax.cache.expiry.ExpiryPolicy expiryPlc, IgnitePredicate<javax.cache.Cache.Entry<K,V>>[] filter, UUID subjId, int taskNameHash)
cctx - Cache context.cache - Cache instance.op - Update operation.syncMode - Write synchronization mode.keys - Keys to update.vals - Values or transform closure.invokeArgs - Optional arguments for entry processor.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.expiryPlc - Expiry policy explicitly specified for cache operation.filter - Entry filter.subjId - Subject ID.taskNameHash - Task name hash code.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 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 void checkTimeout(long timeout)
checkTimeout in interface GridCacheAtomicFuture<K,Object>timeout - Timeout to check.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>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015