|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface describes the access to a cache.
---------------------------------------------------------------------
Method Summary | |
void |
clear()
removes all entries from the cache |
java.lang.Object |
get(java.lang.Object identifier)
gets an entry from the cache. |
int |
getCurrentSize()
returns the actual amount of entries within the cache |
int |
getMaxEntries()
returns the number of entries maximal allowed within the cache |
int |
getMaxLifeTime()
sets the maximal time (milliseconds) an entry will be stored within the cache without being called. |
void |
push(java.lang.Object identifier,
java.lang.Object data)
pushes a new entry to the cache. |
java.lang.Object |
remove(java.lang.Object identifier)
removes an entry from the cache. |
void |
setMaxEntries(int maxEntries)
sets the number of entries maximal allowed within the cache |
void |
setMaxLifeTime(int maxLifeTime)
sets the maximal time (milliseconds) an entry will be stored within the cache without being called. |
Method Detail |
public void setMaxEntries(int maxEntries)
public int getMaxEntries()
public void setMaxLifeTime(int maxLifeTime)
public int getMaxLifeTime()
public int getCurrentSize()
public void clear()
public void push(java.lang.Object identifier, java.lang.Object data)
public java.lang.Object get(java.lang.Object identifier)
public java.lang.Object remove(java.lang.Object identifier)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |