public class CacheListenerManager extends Object
| Constructor and Description |
|---|
CacheListenerManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(CacheListener listener)
Adds a new cache listener.
|
Collection<CacheListener> |
getInterestedListeners(org.dmd.dmp.server.extended.DMPEvent event)
Based on the contents of the event, we build a set of listeners that
want to be notified.
|
void |
removeAllListeners()
Clears all existing listeners.
|
void |
removeListener(CacheListener listener)
Removes a cache listener.
|
void |
removeListenersForSession(SessionIF session)
Removes all listeners associated with the specified session.
|
public void addListener(CacheListener listener)
listener - the listener to be added.public void removeAllListeners()
public void removeListener(CacheListener listener)
listener - the listener to be removed.public void removeListenersForSession(SessionIF session)
sessionID - public Collection<CacheListener> getInterestedListeners(org.dmd.dmp.server.extended.DMPEvent event)
event - the event that might be of interest.Copyright © 2019. All rights reserved.