|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.applicationblocks.com.cache.DefaultConfCacheStorage
public final class DefaultConfCacheStorage
The default implementation of the configuration cache storage. This storage implementation is thread safe.
Constructor Summary | |
---|---|
DefaultConfCacheStorage()
|
Method Summary | ||
---|---|---|
void |
add(ICfgObject obj)
Adds the specified object into the cache. |
|
void |
clear()
Removes all items in storage. |
|
boolean |
remove(ICfgObject obj)
Removes the specified configuration object from the storage. |
|
|
retrieve(java.lang.Class<T> cls)
Retrieves a list of all objects in the storage. |
|
|
retrieve(java.lang.Class<T> cls,
java.lang.Object helper)
Retrieves a list of objects in storage utilizing a "helper" parameter. |
|
void |
update(ICfgObject obj)
Updates an existing configuration object in the storage with the passed copy. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultConfCacheStorage()
Method Detail |
---|
public void add(ICfgObject obj)
add
in interface IConfCacheStorage
obj
- object to add
java.lang.IllegalArgumentException
- The object being added
has not been saved in the configuration server
or the object being added
is already in the cache (dbid and type are used
for the purposes of determining equality)public void update(ICfgObject obj)
update
in interface IConfCacheStorage
obj
- The new version of a cached configuration objectpublic boolean remove(ICfgObject obj)
remove
in interface IConfCacheStorage
obj
- The configuration object to remove
public void clear()
clear
in interface IConfCacheStorage
public <T extends ICfgObject> java.lang.Iterable<T> retrieve(java.lang.Class<T> cls)
retrieve
in interface IConfCacheStorage
T
- The type of object in the resulting listcls
- class of objects to be retrieved
public <T extends ICfgObject> java.lang.Iterable<T> retrieve(java.lang.Class<T> cls, java.lang.Object helper)
retrieve
in interface IConfCacheStorage
T
- The type of object in the resulting listcls
- class of objects to be retrievedhelper
- can be either "null" to retrieve all objects,
or CfgObjectType to retrieve by type
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |