public class ClientCacheDhtTopologyFuture extends GridDhtTopologyFutureAdapter implements GridDhtTopologyFuture
GridDhtTopologyFutureAdapter.CacheValidationgrpValidRes| Constructor and Description |
|---|
ClientCacheDhtTopologyFuture(AffinityTopologyVersion topVer) |
ClientCacheDhtTopologyFuture(AffinityTopologyVersion topVer,
IgniteCheckedException e) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
toString() |
void |
validate(CacheGroupContext grp,
Collection<ClusterNode> topNodes) |
validateCache, validateCacheGroupcancel, chain, chain, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, onDone, onDone, reset, resultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitvalidateCachecancel, chain, chain, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, resultpublic ClientCacheDhtTopologyFuture(AffinityTopologyVersion topVer)
topVer - Topology version.public ClientCacheDhtTopologyFuture(AffinityTopologyVersion topVer, IgniteCheckedException e)
topVer - Topology version.e - Error.public void validate(CacheGroupContext grp, Collection<ClusterNode> topNodes)
grp - Cache group.topNodes - Topology nodes.public AffinityTopologyVersion initialVersion()
initialVersion in interface GridDhtTopologyFuturepublic 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.
exchangeDone in interface GridDhtTopologyFutureTrue if exchange is finished and result topology version can be used.public AffinityTopologyVersion topologyVersion()
This method should be called only for finished topology future since result version is not known before exchange finished.
topologyVersion in interface GridDhtTopologyFuturepublic String toString()
toString in class GridFutureAdapter<AffinityTopologyVersion>
Follow @ApacheIgnite
Ignite Fabric : ver. 2.4.0 Release Date : March 5 2018