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, validateAndAddListenerInvocations
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
public void addListener(Object listener)
Listenable
Listener
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 Listenable
listener
- 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 © 2016 JBoss, a division of Red Hat. All rights reserved.