| java.lang.Object com.jofti.cache.BaseAdaptor com.jofti.cache.adapter.OSCacheAdapter
OSCacheAdapter | public class OSCacheAdapter extends BaseAdaptor implements CacheAdapter(Code) | | The adapter implementation specific to OSCache.
The adapter takes care of the implementation specific details for converting
between the process the index expects and the behaviour of OSCache.
For OSCache this means that the behaviour where a NeedsRefreshExeption is
generated on a get is no longer visible to the caller. Instead, the entry is flushed
as it has expired.
OSCache has a full set of callbacks for the object in its cache so updates to the
index are driven by these callbacks.
On start up this adpater will not try and index existing elements in the cache as OSCache provides no way to obtain a set of exsting
keys.
author: Steve Woodcock author: version: 1.0 version:
|
OSCacheAdapter | public OSCacheAdapter()(Code) | | |
getExpiryTime | public int getExpiryTime()(Code) | | Returns the expiryTime. |
remove | public void remove(Object key) throws JoftiException(Code) | | Removes the element which matches the key.
If no element matches, nothing is removed and no Exception is thrown.
Parameters: key - the key of the element to remove throws: CacheException - |
removeAll | public void removeAll() throws JoftiException(Code) | | Remove all elements in the cache, but leave the cache
in a useable state.
throws: CacheException - |
setExpiryTime | public void setExpiryTime(int expiryTime)(Code) | | Parameters: expiryTime - The expiryTime to set. |
|
|