|
||||||||||
| 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 | ||
|---|---|---|
|
addCacheListener(ICacheListener<K,V> obj)
Adds a feature to the CacheListener attribute of the CacheWatchRepairable object |
|
|
addCacheListener(String cacheName,
ICacheListener<K,V> obj)
Adds a feature to the CacheListener attribute of the CacheWatchRepairable object |
|
|
removeCacheListener(ICacheListener<K,V> obj)
Unsubscribes from all caches. |
|
|
removeCacheListener(String cacheName,
ICacheListener<K,V> 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 value
public <K extends Serializable,V extends Serializable> void addCacheListener(String cacheName,
ICacheListener<K,V> obj)
throws IOException
addCacheListener in interface ICacheObservercacheName - The feature to be added to the CacheListener attributeobj - The feature to be added to the CacheListener attribute
IOException
public <K extends Serializable,V extends Serializable> void addCacheListener(ICacheListener<K,V> obj)
throws IOException
addCacheListener in interface ICacheObserverobj - The feature to be added to the CacheListener attribute
IOException
public <K extends Serializable,V extends Serializable> void removeCacheListener(String cacheName,
ICacheListener<K,V> obj)
throws IOException
removeCacheListener in interface ICacheObservercacheName - obj -
IOException
public <K extends Serializable,V extends Serializable> void removeCacheListener(ICacheListener<K,V> obj)
throws IOException
ICacheObserver
removeCacheListener in interface ICacheObserverobj -
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||