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 Summary
Modifier 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
-
addCacheListener
Subscribes to the specified cache.- Parameters:
cacheName
- the specified cache.obj
- object to notify for cache changes.- Throws:
IOException
-
addCacheListener
Subscribes to all caches.- Parameters:
obj
- object to notify for all cache changes.- Throws:
IOException
-
removeCacheListener
Unsubscribes from the specified cache.- Parameters:
cacheName
-obj
- existing subscriber.- Throws:
IOException
-
removeCacheListener
Unsubscribes from all caches.- Parameters:
obj
- existing subscriber.- Throws:
IOException
-