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 ICacheObserver
cacheName
- The feature to be added to the CacheListener attributeobj
- The feature to be added to the CacheListener attributeIOException
public <K,V> void addCacheListener(ICacheListener<K,V> obj) throws IOException
addCacheListener
in interface ICacheObserver
obj
- The feature to be added to the CacheListener attributeIOException
public <K,V> void removeCacheListener(String cacheName, ICacheListener<K,V> obj) throws IOException
removeCacheListener
in interface ICacheObserver
cacheName
- obj
- IOException
public <K,V> void removeCacheListener(ICacheListener<K,V> obj) throws IOException
ICacheObserver
removeCacheListener
in interface ICacheObserver
obj
- IOException
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.