Class CacheInfo
java.lang.Object
org.infinispan.hotrod.impl.topology.CacheInfo
Holds all the cluster topology information the client has for a single cache.
Each segment is mapped to a single server, even though the Hot Rod protocol and ConsistentHash
implementations allow more than one owner.
- Since:
- 14.0
-
Constructor Summary
ConstructorsConstructorDescriptionCacheInfo(org.infinispan.commons.marshall.WrappedBytes cacheName, FailoverRequestBalancingStrategy balancer, int topologyAge, List<InetSocketAddress> servers, ClientIntelligence intelligence) -
Method Summary
Modifier and TypeMethodDescriptionintintintvoidvoidwithNewHash(int topologyAge, int topologyId, List<InetSocketAddress> servers, ConsistentHash consistentHash, int numSegments) withNewServers(int topologyAge, int topologyId, List<InetSocketAddress> servers) withNewServers(int topologyAge, int topologyId, List<InetSocketAddress> servers, ClientIntelligence intelligence)
-
Constructor Details
-
CacheInfo
public CacheInfo(org.infinispan.commons.marshall.WrappedBytes cacheName, FailoverRequestBalancingStrategy balancer, int topologyAge, List<InetSocketAddress> servers, ClientIntelligence intelligence)
-
-
Method Details
-
updateBalancerServers
public void updateBalancerServers() -
withNewServers
-
withNewServers
public CacheInfo withNewServers(int topologyAge, int topologyId, List<InetSocketAddress> servers, ClientIntelligence intelligence) -
withNewHash
public CacheInfo withNewHash(int topologyAge, int topologyId, List<InetSocketAddress> servers, ConsistentHash consistentHash, int numSegments) -
getCacheName
-
getTopologyAge
public int getTopologyAge() -
getBalancer
-
getNumSegments
public int getNumSegments() -
getTopologyId
public int getTopologyId() -
getClientTopologyRef
-
getServers
-
getPrimarySegments
-
getConsistentHash
-
getCacheTopologyInfo
-
updateClientTopologyRef
public void updateClientTopologyRef()
-