public interface ICacheObserver
Modifier and Type | Method and Description |
---|---|
<K,V> void |
addCacheListener(ICacheListener<K,V> obj)
Subscribes to all caches.
|
<K,V> void |
addCacheListener(String cacheName,
ICacheListener<K,V> obj)
Subscribes to the specified cache.
|
<K,V> void |
removeCacheListener(ICacheListener<K,V> obj)
Unsubscribes from all caches.
|
<K,V> void |
removeCacheListener(String cacheName,
ICacheListener<K,V> obj)
Unsubscribes from the specified cache.
|
<K,V> void addCacheListener(String cacheName, ICacheListener<K,V> obj) throws IOException
cacheName
- the specified cache.obj
- object to notify for cache changes.IOException
<K,V> void addCacheListener(ICacheListener<K,V> obj) throws IOException
obj
- object to notify for all cache changes.IOException
<K,V> void removeCacheListener(String cacheName, ICacheListener<K,V> obj) throws IOException
cacheName
- obj
- existing subscriber.IOException
<K,V> void removeCacheListener(ICacheListener<K,V> obj) throws IOException
obj
- existing subscriber.IOException
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.