|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.cache.notifications.Notifier
public class Notifier
Helper class that handles all notifications to registered listeners.
| Constructor Summary | |
|---|---|
Notifier()
|
|
Notifier(Cache cache)
|
|
| Method Summary | |
|---|---|
void |
addCacheListener(Object listener)
Adds a cache listener to the list of cache listeners registered. |
protected void |
destroy()
|
Set<Object> |
getCacheListeners()
|
void |
notifyBuddyGroupChange(BuddyGroup buddyGroup,
boolean pre)
Notifies all registered listeners of a buddy group change event. |
void |
notifyCacheBlocked(CacheSPI cache,
boolean pre)
|
void |
notifyCacheStarted(CacheSPI cache,
InvocationContext ctx)
Notifies all registered listeners of a cacheStarted event. |
void |
notifyCacheStopped(CacheSPI cache,
InvocationContext ctx)
Notifies all registered listeners of a cacheStopped event. |
void |
notifyCacheUnblocked(CacheSPI cache,
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 |
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)
|
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 new_view,
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Notifier()
public Notifier(Cache cache)
| Method Detail |
|---|
protected void destroy()
public void addCacheListener(Object listener)
listener - public void removeCacheListener(Object listener)
listener - public void removeAllCacheListeners()
public Set<Object> getCacheListeners()
public void notifyNodeCreated(Fqn fqn,
boolean pre,
InvocationContext ctx)
fqn - pre - ctx - context of invocation
public void notifyNodeModified(Fqn fqn,
boolean pre,
NodeModifiedEvent.ModificationType modificationType,
Map data,
InvocationContext ctx)
fqn - pre - modificationType - data - ctx - context of invocation
public void notifyNodeRemoved(Fqn fqn,
boolean pre,
Map data,
InvocationContext ctx)
fqn - pre - data - ctx - context of invocation
public void notifyNodeVisited(Fqn fqn,
boolean pre,
InvocationContext ctx)
fqn - pre - ctx - context of invocation
public void notifyNodeMoved(Fqn originalFqn,
Fqn newFqn,
boolean pre,
InvocationContext ctx)
public void notifyNodeEvicted(Fqn fqn,
boolean pre,
InvocationContext ctx)
fqn - pre - ctx - context of invocation
public void notifyNodeLoaded(Fqn fqn,
boolean pre,
Map data,
InvocationContext ctx)
fqn - pre - data - ctx - context of invocation
public void notifyNodeActivated(Fqn fqn,
boolean pre,
Map data,
InvocationContext ctx)
fqn - pre - data - ctx - context of invocation
public void notifyNodePassivated(Fqn fqn,
boolean pre,
Map data,
InvocationContext ctx)
fqn - pre - data - ctx - context of invocation
public void notifyCacheStarted(CacheSPI cache,
InvocationContext ctx)
cache - cache instance to notifyctx - context of invocation
public void notifyCacheStopped(CacheSPI cache,
InvocationContext ctx)
cache - cache instance to notifyctx - context of invocation
public void notifyViewChange(org.jgroups.View new_view,
InvocationContext ctx)
new_view - ctx - context of invocation
public 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 cluster
public void 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 event
public void notifyTransactionRegistered(Transaction transaction,
InvocationContext ctx)
transaction - the transaction that has just completed
public void notifyCacheBlocked(CacheSPI cache,
boolean pre)
public void notifyCacheUnblocked(CacheSPI cache,
boolean pre)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||