Package org.apache.commons.jcs3.engine
Class CacheAdaptor<K,V> 
java.lang.Object
org.apache.commons.jcs3.engine.CacheAdaptor<K,V> 
- All Implemented Interfaces:
- ICacheListener<K,- V> 
Used for Cache-to-Cache messaging purposes. These are used in the balking
 facades in the lateral and remote caches.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionlongGets the listenerId attribute of the CacheAdaptor objectvoidhandleDispose(String cacheName) Shutdown call.voidhandlePut(ICacheElement<K, V> item) Puts an item into the cache.voidhandleRemove(String cacheName, K key) Removes an item.voidhandleRemoveAll(String cacheName) Clears the region.voidsetListenerId(long id) Sets the listenerId attribute of the CacheAdaptor object
- 
Constructor Details- 
CacheAdaptorConstructor for the CacheAdaptor object- Parameters:
- cache-
 
 
- 
- 
Method Details- 
setListenerIdSets the listenerId attribute of the CacheAdaptor object- Specified by:
- setListenerIdin interface- ICacheListener<K,- V> 
- Parameters:
- id- The new listenerId value
- Throws:
- IOException
 
- 
getListenerIdGets the listenerId attribute of the CacheAdaptor object- Specified by:
- getListenerIdin interface- ICacheListener<K,- V> 
- Returns:
- The listenerId value
- Throws:
- IOException
 
- 
handlePutPuts an item into the cache.- Specified by:
- handlePutin interface- ICacheListener<K,- V> 
- Parameters:
- item-
- Throws:
- IOException
 
- 
handleRemoveRemoves an item.- Specified by:
- handleRemovein interface- ICacheListener<K,- V> 
- Parameters:
- cacheName-
- key-
- Throws:
- IOException
 
- 
handleRemoveAllClears the region.- Specified by:
- handleRemoveAllin interface- ICacheListener<K,- V> 
- Parameters:
- cacheName-
- Throws:
- IOException
 
- 
handleDisposeShutdown call.- Specified by:
- handleDisposein interface- ICacheListener<K,- V> 
- Parameters:
- cacheName-
- Throws:
- IOException
 
 
-