| Constructor and Description |
|---|
NotifierImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCacheListener(Object listener)
Adds a cache listener to the list of cache listeners registered.
|
Set<Object> |
getCacheListeners() |
void |
notifyBuddyGroupChange(BuddyGroup buddyGroup,
boolean pre)
Notifies all registered listeners of a buddy group change event.
|
void |
notifyCacheBlocked(boolean pre) |
void |
notifyCacheStarted()
Notifies all registered listeners of a cacheStarted event.
|
void |
notifyCacheStoppedPost()
Notifies all registered listeners of a cacheStopped event.
|
void |
notifyCacheStoppedPre()
Notifies all registered listeners of a cacheStopped event.
|
void |
notifyCacheUnblocked(boolean pre) |
void |
notifyNodeActivated(Fqn fqn,
boolean pre,
Map data,
InvocationContext ctx)
Notifies all registered listeners of a nodeActivated event.
|
void |
notifyNodeCreated(Fqn fqn,
boolean pre,
InvocationContext ctx)
Notifies all registered listeners of a nodeCreated event.
|
void |
notifyNodeEvicted(Fqn fqn,
boolean pre,
InvocationContext ctx)
Notifies all registered listeners of a nodeEvicted event.
|
void |
notifyNodeInvalidated(Fqn fqn,
boolean pre,
InvocationContext ctx)
Notifies all registered listeners of a nodeInvalidated event.
|
void |
notifyNodeLoaded(Fqn fqn,
boolean pre,
Map data,
InvocationContext ctx)
Notifies all registered listeners of a nodeLoaded event.
|
void |
notifyNodeModified(Fqn fqn,
boolean pre,
NodeModifiedEvent.ModificationType modificationType,
Map data,
InvocationContext ctx)
Notifies all registered listeners of a nodeModified event.
|
void |
notifyNodeMoved(Fqn originalFqn,
Fqn newFqn,
boolean pre,
InvocationContext ctx)
Notifies all registered listeners of a nodeMoved event.
|
void |
notifyNodePassivated(Fqn fqn,
boolean pre,
Map data,
InvocationContext ctx)
Notifies all registered listeners of a nodePassivated event.
|
void |
notifyNodeRemoved(Fqn fqn,
boolean pre,
Map data,
InvocationContext ctx)
Notifies all registered listeners of a nodeRemoved event.
|
void |
notifyNodeVisited(Fqn fqn,
boolean pre,
InvocationContext ctx)
Notifies all registered listeners of a nodeVisited event.
|
void |
notifyTransactionCompleted(Transaction transaction,
boolean successful,
InvocationContext ctx)
Notifies all registered listeners of a transaction completion event.
|
void |
notifyTransactionRegistered(Transaction transaction,
InvocationContext ctx)
Notifies all registered listeners of a transaction registration event.
|
void |
notifyViewChange(org.jgroups.View newView,
InvocationContext ctx)
Notifies all registered listeners of a viewChange event.
|
void |
removeAllCacheListeners()
Removes all listeners from the notifier, including the evictionPolicyListener.
|
void |
removeCacheListener(Object listener)
Removes a cache listener from the list of cache listeners registered.
|
boolean |
shouldNotifyOnNodeModified()
When notifying about node modifications, in many scenarios there is a need of building a new Map object.
|
public void addCacheListener(Object listener)
NotifieraddCacheListener in interface Notifierpublic void removeCacheListener(Object listener)
NotifierremoveCacheListener in interface Notifierpublic void removeAllCacheListeners()
public Set<Object> getCacheListeners()
getCacheListeners in interface Notifierpublic void notifyNodeCreated(Fqn fqn, boolean pre, InvocationContext ctx)
NotifiernotifyNodeCreated in interface Notifierpublic void notifyNodeModified(Fqn fqn, boolean pre, NodeModifiedEvent.ModificationType modificationType, Map data, InvocationContext ctx)
NotifiernotifyNodeModified in interface Notifierpublic boolean shouldNotifyOnNodeModified()
NotifiershouldNotifyOnNodeModified in interface Notifierpublic void notifyNodeRemoved(Fqn fqn, boolean pre, Map data, InvocationContext ctx)
NotifiernotifyNodeRemoved in interface Notifierpublic void notifyNodeVisited(Fqn fqn, boolean pre, InvocationContext ctx)
NotifiernotifyNodeVisited in interface Notifierpublic void notifyNodeMoved(Fqn originalFqn, Fqn newFqn, boolean pre, InvocationContext ctx)
NotifiernotifyNodeMoved in interface Notifierpublic void notifyNodeEvicted(Fqn fqn, boolean pre, InvocationContext ctx)
NotifiernotifyNodeEvicted in interface Notifierpublic void notifyNodeInvalidated(Fqn fqn, boolean pre, InvocationContext ctx)
NotifiernotifyNodeInvalidated in interface Notifierpublic void notifyNodeLoaded(Fqn fqn, boolean pre, Map data, InvocationContext ctx)
NotifiernotifyNodeLoaded in interface Notifierpublic void notifyNodeActivated(Fqn fqn, boolean pre, Map data, InvocationContext ctx)
NotifiernotifyNodeActivated in interface Notifierpublic void notifyNodePassivated(Fqn fqn, boolean pre, Map data, InvocationContext ctx)
NotifiernotifyNodePassivated in interface Notifierpublic void notifyCacheStarted()
public void notifyCacheStoppedPost()
public void notifyCacheStoppedPre()
public void notifyViewChange(org.jgroups.View newView,
InvocationContext ctx)
NotifiernotifyViewChange in interface Notifierpublic void notifyBuddyGroupChange(BuddyGroup buddyGroup, boolean pre)
NotifiernotifyBuddyGroupChange in interface NotifierbuddyGroup - buddy group to setpre - if true, this has occured before the buddy group message is broadcast to the clusterpublic void notifyTransactionCompleted(Transaction transaction, boolean successful, InvocationContext ctx)
NotifiernotifyTransactionCompleted in interface Notifiertransaction - the transaction that has just completedsuccessful - if true, the transaction committed. If false, this is a rollback eventpublic void notifyTransactionRegistered(Transaction transaction, InvocationContext ctx)
NotifiernotifyTransactionRegistered in interface Notifiertransaction - the transaction that has just completedpublic void notifyCacheBlocked(boolean pre)
notifyCacheBlocked in interface Notifierpublic void notifyCacheUnblocked(boolean pre)
notifyCacheUnblocked in interface NotifierCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.