|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jtools.cache.CacheManager
Cache Manager
$Id: CacheManager.java,v 1.3 2002/08/07 16:51:09 stfndln Exp $
Field Summary | |
protected static java.util.HashMap |
hsmCache
hashmap that holds all the cached objects |
protected static int |
intThreadSleep
The time the thread goes to sleep |
protected static java.util.Iterator |
keys
object for looping of all the keys |
protected static java.util.Set |
keySet
holds all the keys of all the cached objects |
Constructor Summary | |
CacheManager()
|
Method Summary | |
static boolean |
containsKey(java.lang.Object p_key)
checks if the cache has a specified identifier |
static Cacheable |
getCacheObject(java.lang.Object p_id)
retrieves a cached object by his identifier. |
static void |
setCacheObject(Cacheable p_object)
puts an object in the cache. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static java.util.HashMap hsmCache
protected static int intThreadSleep
protected static java.util.Set keySet
protected static java.util.Iterator keys
Constructor Detail |
public CacheManager()
Method Detail |
public static void setCacheObject(Cacheable p_object)
p_object
- Object Object to put in the cachepublic static Cacheable getCacheObject(java.lang.Object p_id)
p_id
- Object Identifier of the object
public static boolean containsKey(java.lang.Object p_key)
p_key
- Object The identifier to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |