Package org.infinispan.topology
Interface CacheTopologyHandler
-
public interface CacheTopologyHandler
The link betweenLocalTopologyManager
andStateTransferManager
.- Since:
- 5.2
- Author:
- Dan Berindei
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
rebalance(CacheTopology cacheTopology)
Invoked when state transfer has to be started.void
updateConsistentHash(CacheTopology cacheTopology)
Invoked when the CH has to be immediately updated because of a leave or when the state transfer has completed and we have to install a permanent CH (pendingCH == null).
-
-
-
Method Detail
-
updateConsistentHash
void updateConsistentHash(CacheTopology cacheTopology)
Invoked when the CH has to be immediately updated because of a leave or when the state transfer has completed and we have to install a permanent CH (pendingCH == null). A state transfer is not always required.
-
rebalance
void rebalance(CacheTopology cacheTopology)
Invoked when state transfer has to be started. The caller will not consider the local rebalance done when this method returns. Instead, the handler will have to callLocalTopologyManager.confirmRebalancePhase(String, int, int, Throwable)
-
-