|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.feature.persistence.cache.FeatureStoreCache
public class FeatureStoreCache
Cache for persistent GMLObject instances stored in a FeatureStore based on Java's
SoftReference.
FeatureStore| Constructor Summary | |
|---|---|
FeatureStoreCache(int maxEntries)
|
|
| Method Summary | |
|---|---|
void |
add(GMLObject obj)
Adds the given object to the cache. |
void |
clear()
Clears the cache, removing all objects. |
GMLObject |
get(String id)
Returns the object with the specified id (if it exists in the cache). |
void |
remove(String id)
Removes the object with the specified id from the cache (if it exists). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FeatureStoreCache(int maxEntries)
maxEntries - | Method Detail |
|---|
public GMLObject get(String id)
id - id of the object
null if it is not present in the cachepublic void add(GMLObject obj)
obj - object, must not be nullpublic void remove(String id)
id - id of the object, must not be nullpublic void clear()
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||