|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.engine.CacheWatchRepairable
Interceps the requests to the underlying ICacheObserver object so that the listeners can be recorded locally for remote connection recovery purposes. (Durable subscription like those in JMS is not implemented at this stage for it can be too expensive on the runtime.)
Field Summary | |
private java.util.Map |
cacheMap
|
private ICacheObserver |
cacheWatch
|
private static org.apache.commons.logging.Log |
log
|
Constructor Summary | |
CacheWatchRepairable()
|
Method Summary | |
void |
addCacheListener(ICacheListener obj)
Adds a feature to the CacheListener attribute of the CacheWatchRepairable object |
void |
addCacheListener(java.lang.String cacheName,
ICacheListener obj)
Adds a feature to the CacheListener attribute of the CacheWatchRepairable object |
void |
removeCacheListener(ICacheListener obj)
Description of the Method |
void |
removeCacheListener(java.lang.String cacheName,
ICacheListener obj)
Description of the Method |
void |
setCacheWatch(ICacheObserver cacheWatch)
Replaces the underlying cache watch service and reattached all existing listeners to the new cache watch. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final org.apache.commons.logging.Log log
private ICacheObserver cacheWatch
private java.util.Map cacheMap
Constructor Detail |
public CacheWatchRepairable()
Method Detail |
public void setCacheWatch(ICacheObserver cacheWatch)
cacheWatch
- The new cacheWatch valuepublic void addCacheListener(java.lang.String cacheName, ICacheListener obj) throws java.io.IOException
addCacheListener
in interface ICacheObserver
cacheName
- The feature to be added to the CacheListener attributeobj
- The feature to be added to the CacheListener attribute
java.io.IOException
public void addCacheListener(ICacheListener obj) throws java.io.IOException
addCacheListener
in interface ICacheObserver
obj
- The feature to be added to the CacheListener attribute
java.io.IOException
public void removeCacheListener(java.lang.String cacheName, ICacheListener obj) throws java.io.IOException
removeCacheListener
in interface ICacheObserver
obj
- existing subscriber.
java.io.IOException
public void removeCacheListener(ICacheListener obj) throws java.io.IOException
removeCacheListener
in interface ICacheObserver
obj
- existing subscriber.
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |