Class 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 Detail

      • SingletonStoreListener

        public SingletonStoreListener()
    • 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.