Interface ICacheObserver
- All Superinterfaces:
- Remote
- All Known Subinterfaces:
- IRemoteCacheServer<K,- V> 
- All Known Implementing Classes:
- CacheWatchRepairable,- RemoteCacheServer,- ZombieCacheWatch
Used to register interest in receiving cache changes. 
 
Note: server which implements this interface provides a local cache event notification service, whereas server which implements IRmiCacheWatch provides a remote cache event notification service.
Note: server which implements this interface provides a local cache event notification service, whereas server which implements IRmiCacheWatch provides a remote cache event notification service.
- 
Method SummaryModifier and TypeMethodDescription<K,V> void addCacheListener(String cacheName, ICacheListener<K, V> obj) Subscribes to the specified cache.<K,V> void addCacheListener(ICacheListener<K, V> obj) Subscribes to all caches.<K,V> void removeCacheListener(String cacheName, ICacheListener<K, V> obj) Unsubscribes from the specified cache.<K,V> void removeCacheListener(ICacheListener<K, V> obj) Unsubscribes from all caches.
- 
Method Details- 
addCacheListenerSubscribes to the specified cache.- Parameters:
- cacheName- the specified cache.
- obj- object to notify for cache changes.
- Throws:
- IOException
 
- 
addCacheListenerSubscribes to all caches.- Parameters:
- obj- object to notify for all cache changes.
- Throws:
- IOException
 
- 
removeCacheListenerUnsubscribes from the specified cache.- Parameters:
- cacheName-
- obj- existing subscriber.
- Throws:
- IOException
 
- 
removeCacheListenerUnsubscribes from all caches.- Parameters:
- obj- existing subscriber.
- Throws:
- IOException
 
 
-