public class CacheManagerNotifierImpl extends AbstractListenerImpl implements CacheManagerNotifier
AbstractListenerImpl.ListenerInvocation
asyncProcessor, listenersMap, syncProcessor
Constructor and Description |
---|
CacheManagerNotifierImpl() |
Modifier and Type | Method and Description |
---|---|
protected Map<Class<? extends Annotation>,Class<?>> |
getAllowedMethodAnnotations() |
protected Log |
getLog() |
void |
injectCacheManager(EmbeddedCacheManager cacheManager) |
void |
notifyCacheStarted(String cacheName) |
void |
notifyCacheStopped(String cacheName) |
void |
notifyMerge(List<Address> members,
List<Address> oldMembers,
Address myAddress,
int viewId,
List<List<Address>> subgroupsMerged) |
void |
notifyViewChange(List<Address> members,
List<Address> oldMembers,
Address myAddress,
int viewId)
Notifies all registered listeners of a viewChange event.
|
protected void |
resumeIfNeeded(Transaction transaction) |
protected Transaction |
suspendIfNeeded() |
addListener, addListener, getListenerCollectionForAnnotation, getListeners, removeListener, start, testListenerClassValidity, testListenerMethodValidity, validateAndAddListenerInvocation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, getListeners, removeListener
public void injectCacheManager(EmbeddedCacheManager cacheManager)
public void notifyViewChange(List<Address> members, List<Address> oldMembers, Address myAddress, int viewId)
CacheManagerNotifier
notifyViewChange
in interface CacheManagerNotifier
public void notifyMerge(List<Address> members, List<Address> oldMembers, Address myAddress, int viewId, List<List<Address>> subgroupsMerged)
notifyMerge
in interface CacheManagerNotifier
public void notifyCacheStarted(String cacheName)
notifyCacheStarted
in interface CacheManagerNotifier
public void notifyCacheStopped(String cacheName)
notifyCacheStopped
in interface CacheManagerNotifier
protected Log getLog()
getLog
in class AbstractListenerImpl
protected Map<Class<? extends Annotation>,Class<?>> getAllowedMethodAnnotations()
getAllowedMethodAnnotations
in class AbstractListenerImpl
protected final Transaction suspendIfNeeded()
suspendIfNeeded
in class AbstractListenerImpl
protected final void resumeIfNeeded(Transaction transaction)
resumeIfNeeded
in class AbstractListenerImpl
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.