public class ObjectsCache
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
EndCleaner()
Stops the Thread that cleans the caches
|
java.lang.Object |
get(java.lang.Object Key)
Returns the object from the cache
updating the timer
|
java.util.Iterator |
getIter()
Creates an Iterator of the collection of objects
|
void |
put(java.lang.Object Key,
java.lang.Object Value)
Stores the object with the corresponding key
updating the timer
|
void |
remove(java.lang.Object Key)
remove the object from the cache
|
public void put(java.lang.Object Key, java.lang.Object Value)
Key
- the index keyValue
- to storepublic java.lang.Object get(java.lang.Object Key)
Key
- index to retrievepublic void remove(java.lang.Object Key)
Key
- Identifier of object to be removedpublic static void EndCleaner()
public java.util.Iterator getIter()