|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Abstract interface for a simple cache.
| Method Summary | |
void |
flush()
Flushes the cache. |
java.lang.Object |
get(java.lang.Object key)
Gets a cached object with the given key. |
boolean |
getDebugging()
Returns true if debugging is switched on. |
java.util.Enumeration |
getKeys()
Returns an enumeration of all currently cached object keys. |
int |
getObjectCount()
Gets the actual number of cached objects. |
java.util.Enumeration |
getObjects()
Returns an enumeration of all currently cached objects. |
void |
put(java.lang.Object key,
java.lang.Object bean)
Puts an new object in the cache. |
java.lang.Object |
remove(java.lang.Object key)
Removes an object from the cache. |
void |
setDebugging(boolean val)
Turn on/off debugging. |
void |
setMaxComponents(int number)
Set the maximum numbers of objects of the cache. |
void |
setMaxTime(long maxTime)
Sets the maximal time in millis an object is kept in the cache. |
void |
setMinAccess(int minAccess)
Setting the minimal accesses needed to keep an object. |
void |
setReactionSensibility(int sens)
Sets the sehnsibility when an dynamic cache is implemented. |
void |
setUpdateIntervall(long millis)
Set the update period of the cache. |
void |
updateCache()
Updates the cache. |
| Method Detail |
public java.lang.Object get(java.lang.Object key)
public void put(java.lang.Object key,
java.lang.Object bean)
public java.lang.Object remove(java.lang.Object key)
public void setUpdateIntervall(long millis)
public void setMaxComponents(int number)
public void setMinAccess(int minAccess)
public void setMaxTime(long maxTime)
public void setReactionSensibility(int sens)
public int getObjectCount()
public void flush()
public java.util.Enumeration getObjects()
public java.util.Enumeration getKeys()
public void setDebugging(boolean val)
public boolean getDebugging()
public void updateCache()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||