public class GridDhtAtomicUpdateFuture<K,V> extends GridFutureAdapter<Void> implements GridCacheAtomicFuture<K,Void>
AbstractQueuedSynchronizer.ConditionObject| Modifier and Type | Field and Description |
|---|---|
protected static IgniteLogger |
log
Logger.
|
ctx| Constructor and Description |
|---|
GridDhtAtomicUpdateFuture()
Empty constructor required by
Externalizable. |
GridDhtAtomicUpdateFuture(GridCacheContext<K,V> cctx,
CI2<GridNearAtomicUpdateRequest<K,V>,GridNearAtomicUpdateResponse<K,V>> completionCb,
GridCacheVersion writeVer,
GridNearAtomicUpdateRequest<K,V> updateReq,
GridNearAtomicUpdateResponse<K,V> updateRes) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNearWriteEntries(Iterable<UUID> readers,
GridDhtCacheEntry<K,V> entry,
V val,
byte[] valBytes,
javax.cache.processor.EntryProcessor<K,V,?> entryProcessor,
long ttl,
long expireTime) |
void |
addWriteEntry(GridDhtCacheEntry<K,V> entry,
V val,
byte[] valBytes,
javax.cache.processor.EntryProcessor<K,V,?> entryProcessor,
long ttl,
long drExpireTime,
GridCacheVersion drVer) |
void |
checkTimeout(long timeout)
Checks if timeout occurred.
|
IgniteUuid |
futureId() |
Collection<? extends K> |
keys() |
void |
map()
Sends requests to remote nodes.
|
void |
markNotTrackable()
Marks this future as non-trackable.
|
Collection<? extends ClusterNode> |
nodes() |
boolean |
onDone(Void res,
Throwable err)
Callback to notify that future is finished.
|
boolean |
onNodeLeft(UUID nodeId)
Callback for when node left.
|
void |
onResult(UUID nodeId)
Deferred update response.
|
void |
onResult(UUID nodeId,
GridDhtAtomicUpdateResponse<K,V> updateRes)
Callback for backup update response.
|
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 GridDhtAtomicUpdateFuture()
Externalizable.public GridDhtAtomicUpdateFuture(GridCacheContext<K,V> cctx, CI2<GridNearAtomicUpdateRequest<K,V>,GridNearAtomicUpdateResponse<K,V>> completionCb, GridCacheVersion writeVer, GridNearAtomicUpdateRequest<K,V> updateReq, GridNearAtomicUpdateResponse<K,V> updateRes)
cctx - Cache context.completionCb - Callback to invoke when future is completed.writeVer - Write version.updateReq - Update request.updateRes - Update response.public IgniteUuid futureId()
futureId in interface GridCacheFuture<Void>public GridCacheVersion version()
version in interface GridCacheFuture<Void>public Collection<? extends ClusterNode> nodes()
nodes in interface GridCacheFuture<Void>public boolean onNodeLeft(UUID nodeId)
onNodeLeft in interface GridCacheFuture<Void>nodeId - Left node ID.True if future cared about this node.public void checkTimeout(long timeout)
checkTimeout in interface GridCacheAtomicFuture<K,Void>timeout - Timeout to check.public boolean trackable()
trackable in interface GridCacheFuture<Void>True if future should be tracked.public void markNotTrackable()
markNotTrackable in interface GridCacheFuture<Void>public boolean waitForPartitionExchange()
waitForPartitionExchange in interface GridCacheAtomicFuture<K,Void>True if partition exchange should wait for this future to complete.public long topologyVersion()
topologyVersion in interface GridCacheAtomicFuture<K,Void>public Collection<? extends K> keys()
keys in interface GridCacheAtomicFuture<K,Void>public void addWriteEntry(GridDhtCacheEntry<K,V> entry, @Nullable V val, @Nullable byte[] valBytes, javax.cache.processor.EntryProcessor<K,V,?> entryProcessor, long ttl, long drExpireTime, @Nullable GridCacheVersion drVer)
entry - Entry to map.val - Value to write.valBytes - Value bytes.entryProcessor - Entry processor.ttl - TTL (optional).drExpireTime - DR expire time (optional).drVer - DR version (optional).public void addNearWriteEntries(Iterable<UUID> readers, GridDhtCacheEntry<K,V> entry, @Nullable V val, @Nullable byte[] valBytes, javax.cache.processor.EntryProcessor<K,V,?> entryProcessor, long ttl, long expireTime)
readers - Entry readers.entry - Entry.val - Value.valBytes - Value bytes.entryProcessor - Entry processor..ttl - TTL for near cache update (optional).expireTime - Expire time for near cache update (optional).public boolean onDone(@Nullable Void res, @Nullable Throwable err)
null exception is passed in
the result value will be ignored.onDone in class GridFutureAdapter<Void>res - Optional result.err - Optional error.True if result was set by this call.public void map()
public void onResult(UUID nodeId, GridDhtAtomicUpdateResponse<K,V> updateRes)
nodeId - Backup node ID.updateRes - Update response.public void onResult(UUID nodeId)
nodeId - Backup node ID.public String toString()
toString in class GridFutureAdapter<Void>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015