|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Notifier
Public interface with all allowed notifications.
Method Summary | |
---|---|
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 |
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 view,
InvocationContext ctx)
Notifies all registered listeners of a viewChange event. |
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. |
Method Detail |
---|
void notifyNodeCreated(Fqn fqn, boolean pre, InvocationContext ctx)
void notifyNodeModified(Fqn fqn, boolean pre, NodeModifiedEvent.ModificationType modificationType, Map data, InvocationContext ctx)
boolean shouldNotifyOnNodeModified()
void notifyNodeRemoved(Fqn fqn, boolean pre, Map data, InvocationContext ctx)
void notifyNodeVisited(Fqn fqn, boolean pre, InvocationContext ctx)
void notifyNodeMoved(Fqn originalFqn, Fqn newFqn, boolean pre, InvocationContext ctx)
void notifyNodeEvicted(Fqn fqn, boolean pre, InvocationContext ctx)
void notifyNodeInvalidated(Fqn fqn, boolean pre, InvocationContext ctx)
void notifyNodeLoaded(Fqn fqn, boolean pre, Map data, InvocationContext ctx)
void notifyNodeActivated(Fqn fqn, boolean pre, Map data, InvocationContext ctx)
void notifyNodePassivated(Fqn fqn, boolean pre, Map data, InvocationContext ctx)
void notifyViewChange(org.jgroups.View view, InvocationContext ctx)
void notifyBuddyGroupChange(BuddyGroup buddyGroup, boolean pre)
buddyGroup
- buddy group to setpre
- if true, this has occured before the buddy group message is broadcast to the clustervoid notifyTransactionCompleted(Transaction transaction, boolean successful, InvocationContext ctx)
transaction
- the transaction that has just completedsuccessful
- if true, the transaction committed. If false, this is a rollback eventvoid notifyTransactionRegistered(Transaction transaction, InvocationContext ctx)
transaction
- the transaction that has just completedvoid notifyCacheBlocked(boolean pre)
void notifyCacheUnblocked(boolean pre)
void addCacheListener(Object listener)
listener
- void removeCacheListener(Object listener)
listener
- Set<Object> getCacheListeners()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |