|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Cache
An interface for self-updating caches consisting of any single type of object. The class of objects to be held in the cache is not specified by this interface.
Updateable| Method Summary | |
|---|---|
void |
addCacheListener(CacheListener listener)
Registers a CacheListener for this Cache. |
CacheListener[] |
getCacheListeners()
Retrieves all the listeners associated with this Cache. |
Cacheable |
getItem(java.lang.String name)
Gets an item from the cache. |
Cacheable |
getItem(java.lang.String name,
java.lang.String type)
Gets an item of the specified type from the cache. |
java.util.Iterator<CacheElement> |
listCachedFiles()
Returns an iterator over a list of CacheElement instances. |
void |
removeCacheListener(CacheListener listener)
Unregisters a CacheListener for this Cache. |
void |
stopAutoUpdate()
Stops automatically updating the cache. |
| Method Detail |
|---|
void addCacheListener(CacheListener listener)
CacheListener for this Cache.
listener - the CacheListener to be registered.void removeCacheListener(CacheListener listener)
CacheListener for this Cache.
listener - the CacheListener to be unregistered.CacheListener[] getCacheListeners()
Cache.
CacheListenersvoid stopAutoUpdate()
java.util.Iterator<CacheElement> listCachedFiles()
CacheElement instances.
CacheElement instances
that correspond to templates in the cacheCacheable getItem(java.lang.String name)
name - a string uniquely identifying the item.
null if not found.
Cacheable getItem(java.lang.String name,
java.lang.String type)
name - a string uniquely identifying the item.type - the type of item to be retrieved
null if not found.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||