Class GridCacheUpdateAtomicResult
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.GridCacheUpdateAtomicResult
-
public class GridCacheUpdateAtomicResult extends Object
Cache entry atomic update result.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGridCacheUpdateAtomicResult.UpdateOutcome
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable IgniteBiTuple<Object,Exception>computedResult()longconflictExpireTime()@Nullable GridCacheVersionConflictContext<?,?>conflictResolveResult()longnewTtl()@Nullable CacheObjectnewValue()@Nullable CacheObjectoldValue()@Nullable GridCacheVersionremoveVersion()booleansendToDht()booleansuccess()StringtoString()booleantransformed()longupdateCounter()
-
-
-
Method Detail
-
computedResult
@Nullable public @Nullable IgniteBiTuple<Object,Exception> computedResult()
- Returns:
- Value computed by the
EntryProcessor.
-
success
public boolean success()
- Returns:
- Success flag.
-
oldValue
@Nullable public @Nullable CacheObject oldValue()
- Returns:
- Old value.
-
newValue
@Nullable public @Nullable CacheObject newValue()
- Returns:
- New value.
-
newTtl
public long newTtl()
- Returns:
GridCacheUtils.TTL_NOT_CHANGEDif TTL did not change, otherwise new TTL.
-
updateCounter
public long updateCounter()
- Returns:
- Partition update index.
-
conflictExpireTime
public long conflictExpireTime()
- Returns:
- Explicit conflict expire time (if any). Set only if it is necessary to propagate concrete expire time
value to DHT node. Otherwise set to
GridCacheUtils.EXPIRE_TIME_CALCULATE.
-
removeVersion
@Nullable public @Nullable GridCacheVersion removeVersion()
- Returns:
- Version for deferred delete.
-
conflictResolveResult
@Nullable public @Nullable GridCacheVersionConflictContext<?,?> conflictResolveResult()
- Returns:
- DR conflict resolution context.
-
sendToDht
public boolean sendToDht()
- Returns:
- Whether update should be propagated to DHT node.
-
transformed
public boolean transformed()
- Returns:
Trueif transformed.
-
-