|
|||||||||
| Home >> All >> com >> RuntimeCollective >> [ webapps overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.RuntimeCollective.webapps
Interface Cache

- All Known Implementing Classes:
- GarbageCollectedCache, PermanentCache
- public interface Cache
Interface to implement if you want to create a new kind of Cache for Objects. Objects are keyed by an integer. Typical subclass: PermanentCache.
- Version:
- $Id: Cache.java,v 1.3 2003/09/30 15:13:03 joe Exp $
| Method Summary | |
void |
clear()
Empty the whole cache |
java.util.Iterator |
getIndexedObjects()
Get all (id, Object) couples return An Iterator of Iterators |
int |
getNoObjects()
Get the number of Objects in the cache |
java.lang.Object |
getObject(int id)
Get an object for a given key |
java.util.Iterator |
getObjects()
Get all Objects return An Iterator of Objects |
void |
removeObject(int id)
Remove an object for a given key |
void |
setObject(int id,
java.lang.Object object)
Set an object for a given key |
| Method Detail |
setObject
public void setObject(int id,
java.lang.Object object)
- Set an object for a given key
getObject
public java.lang.Object getObject(int id)
- Get an object for a given key
removeObject
public void removeObject(int id)
- Remove an object for a given key
getObjects
public java.util.Iterator getObjects()
- Get all Objects
return An Iterator of Objects
getIndexedObjects
public java.util.Iterator getIndexedObjects()
- Get all (id, Object) couples
return An Iterator of Iterators
getNoObjects
public int getNoObjects()
- Get the number of Objects in the cache
clear
public void clear()
- Empty the whole cache
|
|||||||||
| Home >> All >> com >> RuntimeCollective >> [ webapps overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC