public class GridDhtAtomicUpdateFuture extends GridFutureAdapter<Void> implements GridCacheAtomicFuture<Void>
AbstractQueuedSynchronizer.ConditionObject| Modifier and Type | Field and Description |
|---|---|
protected static IgniteLogger |
log
Logger.
|
| Constructor and Description |
|---|
GridDhtAtomicUpdateFuture(GridCacheContext cctx,
CI2<GridNearAtomicUpdateRequest,GridNearAtomicUpdateResponse> completionCb,
GridCacheVersion writeVer,
GridNearAtomicUpdateRequest updateReq,
GridNearAtomicUpdateResponse updateRes) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNearWriteEntries(Iterable<UUID> readers,
GridDhtCacheEntry entry,
CacheObject val,
javax.cache.processor.EntryProcessor<Object,Object,Object> entryProcessor,
long ttl,
long expireTime) |
void |
addWriteEntry(GridDhtCacheEntry entry,
CacheObject val,
javax.cache.processor.EntryProcessor<Object,Object,Object> entryProcessor,
long ttl,
long conflictExpireTime,
GridCacheVersion conflictVer) |
void |
checkTimeout(long timeout)
Checks if timeout occurred.
|
IgniteUuid |
futureId() |
Collection<KeyCacheObject> |
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 updateRes)
Callback for backup update response.
|
AffinityTopologyVersion |
topologyVersion() |
String |
toString() |
boolean |
trackable() |
GridCacheVersion |
version() |
boolean |
waitForPartitionExchange() |
cancel, chain, duration, endTime, error, get, get, get, get0, 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, setExclusiveOwnerThreadprotected static IgniteLogger log
public GridDhtAtomicUpdateFuture(GridCacheContext cctx, CI2<GridNearAtomicUpdateRequest,GridNearAtomicUpdateResponse> completionCb, GridCacheVersion writeVer, GridNearAtomicUpdateRequest updateReq, GridNearAtomicUpdateResponse 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<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<Void>True if partition exchange should wait for this future to complete.public AffinityTopologyVersion topologyVersion()
topologyVersion in interface GridCacheAtomicFuture<Void>public Collection<KeyCacheObject> keys()
keys in interface GridCacheAtomicFuture<Void>public void addWriteEntry(GridDhtCacheEntry entry, @Nullable CacheObject val, javax.cache.processor.EntryProcessor<Object,Object,Object> entryProcessor, long ttl, long conflictExpireTime, @Nullable GridCacheVersion conflictVer)
entry - Entry to map.val - Value to write.entryProcessor - Entry processor.ttl - TTL (optional).conflictExpireTime - Conflict expire time (optional).conflictVer - Conflict version (optional).public void addNearWriteEntries(Iterable<UUID> readers, GridDhtCacheEntry entry, @Nullable CacheObject val, javax.cache.processor.EntryProcessor<Object,Object,Object> entryProcessor, long ttl, long expireTime)
readers - Entry readers.entry - Entry.val - Value.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 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 Release Date : March 31 2015