public class CacheManagerNotifierImpl extends AbstractListenerImpl<Event,ListenerInvocation<Event>> implements CacheManagerNotifier
| Modifier and Type | Class and Description |
|---|---|
protected class |
CacheManagerNotifierImpl.DefaultBuilder |
AbstractListenerImpl.AbstractInvocationBuilder, AbstractListenerImpl.ListenerInvocationImpl<A>asyncProcessor, listenersMap, syncProcessor| Constructor and Description |
|---|
CacheManagerNotifierImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(Object listener)
Adds a listener to the component.
|
protected Map<Class<? extends Annotation>,Class<?>> |
getAllowedMethodAnnotations(Listener l) |
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() |
getListenerCollectionForAnnotation, getListeners, removeListener, removeListenerInvocation, start, stop, testListenerClassValidity, testListenerMethodValidity, validateAndAddListenerInvocationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetListeners, removeListenerpublic void injectCacheManager(EmbeddedCacheManager cacheManager)
public void notifyViewChange(List<Address> members, List<Address> oldMembers, Address myAddress, int viewId)
CacheManagerNotifiernotifyViewChange in interface CacheManagerNotifierpublic void notifyMerge(List<Address> members, List<Address> oldMembers, Address myAddress, int viewId, List<List<Address>> subgroupsMerged)
notifyMerge in interface CacheManagerNotifierpublic void notifyCacheStarted(String cacheName)
notifyCacheStarted in interface CacheManagerNotifierpublic void notifyCacheStopped(String cacheName)
notifyCacheStopped in interface CacheManagerNotifierpublic void addListener(Object listener)
ListenableListener and
further to that, contain methods annotated appropriately, otherwise the listener will not be registered.
See the Listener annotation for more information.
addListener in interface Listenablelistener - must not be null.protected Log getLog()
getLog in class AbstractListenerImpl<Event,ListenerInvocation<Event>>protected Map<Class<? extends Annotation>,Class<?>> getAllowedMethodAnnotations(Listener l)
getAllowedMethodAnnotations in class AbstractListenerImpl<Event,ListenerInvocation<Event>>protected final Transaction suspendIfNeeded()
suspendIfNeeded in class AbstractListenerImpl<Event,ListenerInvocation<Event>>protected final void resumeIfNeeded(Transaction transaction)
resumeIfNeeded in class AbstractListenerImpl<Event,ListenerInvocation<Event>>Copyright © 2024 JBoss, a division of Red Hat. All rights reserved.