Class GridNearAtomicSingleUpdateFuture
- java.lang.Object
-
- org.apache.ignite.internal.util.future.GridFutureAdapter<R>
-
- org.apache.ignite.internal.processors.cache.GridCacheFutureAdapter<Object>
-
- org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicAbstractUpdateFuture
-
- org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicSingleUpdateFuture
-
- All Implemented Interfaces:
IgniteInternalFuture<Object>,GridCacheAtomicFuture<Object>,GridCacheFuture<Object>
public class GridNearAtomicSingleUpdateFuture extends GridNearAtomicAbstractUpdateFuture
DHT atomic cache near update future.
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicAbstractUpdateFuture
cache, cctx, deploymentLdrId, err, expiryPlc, filter, futId, invokeArgs, keepBinary, log, msgLog, nearEnabled, op, opRes, recovery, remapCnt, remapTopVer, retval, skipStore, syncMode, taskNameHash, topLocked, topVer
-
-
Constructor Summary
Constructors Constructor Description GridNearAtomicSingleUpdateFuture(GridCacheContext cctx, GridDhtAtomicCache cache, CacheWriteSynchronizationMode syncMode, GridCacheOperation op, Object key, @Nullable Object val, @Nullable Object[] invokeArgs, boolean retval, @Nullable javax.cache.expiry.ExpiryPolicy expiryPlc, CacheEntryPredicate[] filter, int taskNameHash, boolean skipStore, boolean keepBinary, boolean recovery, int remapCnt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidmap(AffinityTopologyVersion topVer)protected voidmapOnTopology()Maps future on ready topology.voidonDhtResponse(UUID nodeId, GridDhtAtomicNearResponse res)booleanonNodeLeft(UUID nodeId)Callback for when node left.voidonPrimaryResponse(UUID nodeId, GridNearAtomicUpdateResponse res, boolean nodeErr)Response callback.StringtoString()-
Methods inherited from class org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicAbstractUpdateFuture
completeFuture, futureId, map, markNotTrackable, onDone, trackable
-
Methods inherited from class org.apache.ignite.internal.processors.cache.GridCacheFutureAdapter
duration, onDone, startTime
-
Methods inherited from class org.apache.ignite.internal.util.future.GridFutureAdapter
cancel, chain, chain, chain, chain, chainCompose, chainCompose, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, listen, logger, onCancelled, onDone, onDone, onDone, reset, result
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.processors.cache.GridCacheFuture
duration, startTime
-
Methods inherited from interface org.apache.ignite.internal.IgniteInternalFuture
cancel, chain, chain, chain, chain, chainCompose, chainCompose, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, listen, result
-
-
-
-
Constructor Detail
-
GridNearAtomicSingleUpdateFuture
public GridNearAtomicSingleUpdateFuture(GridCacheContext cctx, GridDhtAtomicCache cache, CacheWriteSynchronizationMode syncMode, GridCacheOperation op, Object key, @Nullable @Nullable Object val, @Nullable @Nullable Object[] invokeArgs, boolean retval, @Nullable @Nullable javax.cache.expiry.ExpiryPolicy expiryPlc, CacheEntryPredicate[] filter, int taskNameHash, boolean skipStore, boolean keepBinary, boolean recovery, int remapCnt)
- Parameters:
cctx- Cache context.cache- Cache instance.syncMode- Write synchronization mode.op- Update operation.key- Keys to update.val- Values or transform closure.invokeArgs- Optional arguments for entry processor.retval- Return value require flag.expiryPlc- Expiry policy explicitly specified for cache operation.filter- Entry filter.taskNameHash- Task name hash code.skipStore- Skip store flag.keepBinary- Keep binary flag.recovery-Trueif cache operation is called in recovery mode.remapCnt- Maximum number of retries.
-
-
Method Detail
-
onNodeLeft
public boolean onNodeLeft(UUID nodeId)
Callback for when node left.- Parameters:
nodeId- Left node ID.- Returns:
Trueif future cared about this node.
-
onDhtResponse
public void onDhtResponse(UUID nodeId, GridDhtAtomicNearResponse res)
- Specified by:
onDhtResponsein classGridNearAtomicAbstractUpdateFuture- Parameters:
nodeId- Node ID.res- Response.
-
onPrimaryResponse
public void onPrimaryResponse(UUID nodeId, GridNearAtomicUpdateResponse res, boolean nodeErr)
Response callback.- Specified by:
onPrimaryResponsein classGridNearAtomicAbstractUpdateFuture- Parameters:
nodeId- Node ID.res- Update response.nodeErr-Trueif response was created on node failure.
-
mapOnTopology
protected void mapOnTopology()
Maps future on ready topology.- Specified by:
mapOnTopologyin classGridNearAtomicAbstractUpdateFuture
-
map
protected void map(AffinityTopologyVersion topVer)
- Specified by:
mapin classGridNearAtomicAbstractUpdateFuture- Parameters:
topVer- Topology version.
-
toString
public String toString()
- Overrides:
toStringin classGridNearAtomicAbstractUpdateFuture
-
-