public interface GridDhtTopologyFuture extends IgniteInternalFuture<AffinityTopologyVersion>
| Modifier and Type | Method and Description |
|---|---|
boolean |
changedAffinity() |
boolean |
exchangeDone()
Ready affinity future (
GridCachePartitionExchangeManager.affinityReadyFuture(AffinityTopologyVersion)
is completed before GridFutureAdapter.onDone(Object, Throwable) is called on
GridDhtPartitionsExchangeFuture, it is guaranteed that this method will return true
if affinity ready future is finished. |
AffinityTopologyVersion |
initialVersion()
Returns topology version when exchange started.
|
AffinityTopologyVersion |
topologyVersion()
Gets result topology version of this future.
|
@Nullable CacheInvalidStateException |
validateCache(GridCacheContext cctx,
boolean recovery,
boolean read,
@Nullable Object key,
@Nullable Collection<?> keys)
Returns error is cache topology is not valid.
|
cancel, chain, chain, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, resultAffinityTopologyVersion initialVersion()
AffinityTopologyVersion topologyVersion()
This method should be called only for finished topology future since result version is not known before exchange finished.
boolean exchangeDone()
GridCachePartitionExchangeManager.affinityReadyFuture(AffinityTopologyVersion)
is completed before GridFutureAdapter.onDone(Object, Throwable) is called on
GridDhtPartitionsExchangeFuture, it is guaranteed that this method will return true
if affinity ready future is finished.
Also this method returns false for merged exchange futures.
True if exchange is finished and result topology version can be used.@Nullable @Nullable CacheInvalidStateException validateCache(GridCacheContext cctx, boolean recovery, boolean read, @Nullable @Nullable Object key, @Nullable @Nullable Collection<?> keys)
cctx - Cache context.recovery - True if cache operation is done in recovery mode. Then it will only check
for cache active state and topology validator result.read - True if validating read operation, false if validating write.key - Key (optimization to avoid collection creation).keys - Keys involved in a cache operation.boolean changedAffinity()
True if this exchange changed affinity.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.1 Release Date : December 20 2021