Class SingletonCacheWriter.SingletonStoreListener
- java.lang.Object
-
- org.infinispan.persistence.support.SingletonCacheWriter.SingletonStoreListener
-
- Enclosing class:
- SingletonCacheWriter
public class SingletonCacheWriter.SingletonStoreListener extends Object
Cache listener that reacts to cluster topology changes to find out whether a new coordinator is elected. SingletonStore reacts to these changes in order to decide which cache should interact with the underlying cache store.
-
-
Constructor Summary
Constructors Constructor Description SingletonStoreListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cacheStarted(Event e)
Cache started, check whether the cache is the coordinator and set the singleton store's active status.void
viewChange(ViewChangedEvent event)
The cluster formation changed, so determine whether the current cache stopped being the coordinator or became the coordinator.
-
-
-
Method Detail
-
cacheStarted
public void cacheStarted(Event e)
Cache started, check whether the cache is the coordinator and set the singleton store's active status.
-
viewChange
public void viewChange(ViewChangedEvent event)
The cluster formation changed, so determine whether the current cache stopped being the coordinator or became the coordinator. This method can lead to an optional in memory to cache loader state push, if the current cache became the coordinator. This method will report any issues that could potentially arise from this push.
-
-