| java.lang.Object com.rift.coad.lib.bean.BeanCache
BeanCache | public class BeanCache implements Cache(Code) | | This object is responsible for mantaining a cache of beans. It is used by
both the RMI tie classes and the Local proxy objects when a method that
contains, find|get and remove|delete is found.
author: Brett Chaldecott |
Field Summary | |
protected static Logger | log |
Method Summary | |
public void | addCacheEntry(long timeout, Object cacheKey, Object wrappedObject, CacheEntry entry) This method adds the entry to the cache. | public void | addCacheEntry(long timeout, Object cacheKey, Object wrappedObject, Object proxy, CacheEntry handle) This method adds a new entry to the cache. | public void | clear() This method is called to forcibly remove everything from the cache. | public boolean | contains(Object cacheKey) This mehtod returns true if the cache contains the checked entry. | public void | garbageCollect() This method is called to perform garbage collection on the cache entries. | public BeanCacheEntry | getEntry(Object cacheKey) This method returns the bean cache entry for manipulation by the caller. | public void | removeCacheEntry(Object cacheKey) This method removes the entry from the cache based on the key passed in. |
log | protected static Logger log(Code) | | |
addCacheEntry | public void addCacheEntry(long timeout, Object cacheKey, Object wrappedObject, CacheEntry entry) throws BeanException(Code) | | This method adds the entry to the cache.
Parameters: cacheKey - The key to identify this entry by. Parameters: wrappedObject - The object wrapped by the cache entry. Parameters: entry - An entry in the cache |
addCacheEntry | public void addCacheEntry(long timeout, Object cacheKey, Object wrappedObject, Object proxy, CacheEntry handle) throws BeanException(Code) | | This method adds a new entry to the cache.
Parameters: cacheKey - The key to identify this entry by. Parameters: wrappedObject - The object wrapped by the proxy. Parameters: proxy - The proxy to add. Parameters: handle - The handler for the bean proxy object. |
clear | public void clear()(Code) | | This method is called to forcibly remove everything from the cache.
|
contains | public boolean contains(Object cacheKey)(Code) | | This mehtod returns true if the cache contains the checked entry.
TRUE if the cache contains the checked entry. Parameters: cacheKey - The entry to perform the check for. |
garbageCollect | public void garbageCollect()(Code) | | This method is called to perform garbage collection on the cache entries.
|
getEntry | public BeanCacheEntry getEntry(Object cacheKey) throws BeanException(Code) | | This method returns the bean cache entry for manipulation by the caller.
A reference to the bean cache object. Parameters: cacheEntry - The cache entry to retrieve. |
removeCacheEntry | public void removeCacheEntry(Object cacheKey) throws BeanException(Code) | | This method removes the entry from the cache based on the key passed in.
Parameters: cacheKey - The key in the cache to remove. |
|
|