public class CacheWatchRepairable extends Object implements ICacheObserver
| Constructor and Description |
|---|
CacheWatchRepairable() |
| Modifier and Type | Method and Description |
|---|---|
<K,V> void |
addCacheListener(ICacheListener<K,V> obj)
Adds a feature to the CacheListener attribute of the CacheWatchRepairable object
|
<K,V> void |
addCacheListener(String cacheName,
ICacheListener<K,V> obj)
Adds a feature to the CacheListener attribute of the CacheWatchRepairable object
|
<K,V> void |
removeCacheListener(ICacheListener<K,V> obj)
Unsubscribes from all caches.
|
<K,V> void |
removeCacheListener(String cacheName,
ICacheListener<K,V> obj)
Tell the server to release us.
|
void |
setCacheWatch(ICacheObserver cacheWatch)
Replaces the underlying cache watch service and re-attaches all existing listeners to the new
cache watch.
|
public CacheWatchRepairable()
public void setCacheWatch(ICacheObserver cacheWatch)
cacheWatch - The new cacheWatch valuepublic <K,V> 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 attributeIOExceptionpublic <K,V> void addCacheListener(ICacheListener<K,V> obj) throws IOException
addCacheListener in interface ICacheObserverobj - The feature to be added to the CacheListener attributeIOExceptionpublic <K,V> void removeCacheListener(String cacheName, ICacheListener<K,V> obj) throws IOException
removeCacheListener in interface ICacheObservercacheName - obj - IOExceptionpublic <K,V> void removeCacheListener(ICacheListener<K,V> obj) throws IOException
ICacheObserverremoveCacheListener in interface ICacheObserverobj - IOExceptionCopyright © 2002–2018 The Apache Software Foundation. All rights reserved.