Class SingletonCacheWriter.SingletonStoreListener

  • Enclosing class:
    SingletonCacheWriter

    public class SingletonCacheWriter.SingletonStoreListener
    extends java.lang.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.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.