org.infinispan.loaders.decorators
Class SingletonStore.SingletonStoreListener

java.lang.Object
  extended by org.infinispan.loaders.decorators.SingletonStore.SingletonStoreListener
Enclosing class:
SingletonStore

public class SingletonStore.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
SingletonStore.SingletonStoreListener()
           
 
Method Summary
 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

SingletonStore.SingletonStoreListener

public SingletonStore.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.


-->

Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.