|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.engine.CacheWatchRepairable
public class CacheWatchRepairable
Intercepts 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.)
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)
Unsubscribes from all caches. |
void |
removeCacheListener(java.lang.String cacheName,
ICacheListener obj)
Tell the server to release us. |
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 |
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
cacheName
- obj
-
java.io.IOException
public void removeCacheListener(ICacheListener obj) throws java.io.IOException
ICacheObserver
removeCacheListener
in interface ICacheObserver
obj
-
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |