|
Infinispan Distribution 5.2.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RebalancePolicy
Processes cache membership changes or any other events and decides when to
rebalance state between members.
It is used both in distributed and replicated mode.
Implementations can trigger a rebalance using ClusterTopologyManager.triggerRebalance(String)
.
They don't control the resulting consistent hash directly, but they can use the ClusterCacheStatus
to access the cache's custom ConsistentHashFactory
implementation
and influence the generated consistent hash indirectly.
Method Summary | |
---|---|
void |
initCache(String cacheName,
ClusterCacheStatus cacheStatus)
Initialize the policy for a cache, without a list of members. |
void |
updateCacheStatus(String cacheName,
ClusterCacheStatus cacheStatus)
Called when the status of a cache changes. |
Method Detail |
---|
void initCache(String cacheName, ClusterCacheStatus cacheStatus) throws Exception
Exception
void updateCacheStatus(String cacheName, ClusterCacheStatus cacheStatus) throws Exception
Exception
|
Infinispan Distribution 5.2.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |