|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.fortuna.mstor.util.CacheAdapter
public class CacheAdapter
A simple adapter for caching functionality. It can be used for example to cache messages for a single folder.. This class by itself is a stub that doesn't actually implement any caching. Subclasses of this class may implement various caching strategies though.
| Constructor Summary | |
|---|---|
CacheAdapter()
|
|
| Method Summary | |
|---|---|
void |
clearCache()
Clears the cache. |
void |
putObjectIntoCache(int index,
java.lang.Object object)
Puts the object in the cache. |
java.lang.Object |
retrieveObjectFromCache(int index)
Retrieves the object from cache (if it's there). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CacheAdapter()
| Method Detail |
|---|
public void clearCache()
public java.lang.Object retrieveObjectFromCache(int index)
index - the index of the required object
public void putObjectIntoCache(int index,
java.lang.Object object)
index - the index of the objectobject - the object that is to be cached
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||