org.jboss.cache.loader
Class SingletonStoreCacheLoader.SingletonStoreListener
java.lang.Object
org.jboss.cache.loader.SingletonStoreCacheLoader.SingletonStoreListener
- Enclosing class:
- SingletonStoreCacheLoader
public class SingletonStoreCacheLoader.SingletonStoreListener
- extends java.lang.Object
Cache listener that reacts to cluster topology changes to find out whether a new coordinator is elected.
SingletonStoreCacheLoader reacts to these changes in order to decide which node should interact with the
underlying cache store.
Method Summary |
void |
cacheStarted(Event e)
Cache started, check whether the node is the coordinator and set the singleton store cache loader's active
status. |
void |
cacheStopped(Event e)
|
void |
viewChange(ViewChangedEvent event)
The cluster formation changed, so determine whether the current node 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 |
SingletonStoreCacheLoader.SingletonStoreListener
public SingletonStoreCacheLoader.SingletonStoreListener()
cacheStarted
public void cacheStarted(Event e)
- Cache started, check whether the node is the coordinator and set the singleton store cache loader's active
status.
cacheStopped
public void cacheStopped(Event e)
viewChange
public void viewChange(ViewChangedEvent event)
- The cluster formation changed, so determine whether the current node 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 node
became the coordinator. This method will report any issues that could potentially arise from this push.