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| Constructor and Description |
|---|
CacheManagerNotifierImpl() |
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<Void> |
addListenerAsync(Object listener)
Asynchronous version of
Listenable.addListener(Object) |
protected Map<Class<? extends Annotation>,Class<?>> |
getAllowedMethodAnnotations(Listener l) |
protected Log |
getLog() |
CompletionStage<Void> |
notifyCacheStarted(String cacheName) |
CompletionStage<Void> |
notifyCacheStopped(String cacheName) |
CompletionStage<Void> |
notifyMerge(List<Address> members,
List<Address> oldMembers,
Address myAddress,
int viewId,
List<List<Address>> subgroupsMerged) |
CompletionStage<Void> |
notifyViewChange(List<Address> members,
List<Address> oldMembers,
Address myAddress,
int viewId)
Notifies all registered listeners of a viewChange event.
|
CompletionStage<Void> |
removeListenerAsync(Object listener)
Asynchronous version of
Listenable.removeListener(Object) |
protected void |
resumeIfNeeded(Transaction transaction) |
void |
start() |
protected Transaction |
suspendIfNeeded() |
canApply, composeStageIfNeeded, findListenerCallbacks, getListenerCollectionForAnnotation, getListeners, hasListener, removeListenerFromMaps, removeListenerInvocation, resumeOnCPU, stop, testListenerClassValidity, testListenerMethodValidity, validateAndAddFilterListenerInvocations, validateAndAddListenerInvocationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasListeneraddListener, getListeners, removeListenerpublic CompletionStage<Void> notifyViewChange(List<Address> members, List<Address> oldMembers, Address myAddress, int viewId)
CacheManagerNotifiernotifyViewChange in interface CacheManagerNotifierpublic CompletionStage<Void> notifyMerge(List<Address> members, List<Address> oldMembers, Address myAddress, int viewId, List<List<Address>> subgroupsMerged)
notifyMerge in interface CacheManagerNotifierpublic CompletionStage<Void> notifyCacheStarted(String cacheName)
notifyCacheStarted in interface CacheManagerNotifierpublic CompletionStage<Void> notifyCacheStopped(String cacheName)
notifyCacheStopped in interface CacheManagerNotifierpublic CompletionStage<Void> addListenerAsync(Object listener)
ListenableListenable.addListener(Object)addListenerAsync in interface Listenablelistener - listener to add, must not be nullpublic CompletionStage<Void> removeListenerAsync(Object listener)
ListenableListenable.removeListener(Object)removeListenerAsync in interface ListenableremoveListenerAsync in class AbstractListenerImpl<Event,ListenerInvocation<Event>>listener - listener to remove, must not be nullprotected 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>>public void start()
Copyright © 2021 JBoss by Red Hat. All rights reserved.