|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sandev.basics.util.IDCacheBase
org.sandev.basics.util.SingletonIDCache
A singleton IDCache for shared object caching. One cache is instantiated per virtual machine. This is optimal for minimizing the overall memory footprint of the application, and for maximizing the chance that a retrieved object will be found in the cache, but is NOT recommended for multiapp or multiserver development:
WARNING: Nodes sharing access to the same IDCache must have the
same security and authorization to avoid retrieving more or less
information than what should be there.
To share the same cache across multiple nodes with different
authorization, write a "privileged" node to hold the cache, and then
have all the client nodes get their info served from the privileged
node via Authorizers.
| Field Summary | |
protected static SingletonIDCache |
cache
Our singleton reference |
| Fields inherited from class org.sandev.basics.util.IDCacheBase |
map, revisionCheck |
| Constructor Summary | |
protected |
SingletonIDCache()
no access, default ctor. |
| Method Summary | |
static SingletonIDCache |
getSingletonIDCache()
return the singleton reference |
protected static void |
instantiateCache()
Instantiate the cache. |
| Methods inherited from class org.sandev.basics.util.IDCacheBase |
checkRevisionNumber, clear, getInstance, getMap, idToKey, init, putInstance, removeInstance, setRevisionCheck |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.sandev.basics.util.IDCache |
clear, getInstance, getMap, putInstance, removeInstance |
| Field Detail |
protected static SingletonIDCache cache
| Constructor Detail |
protected SingletonIDCache()
| Method Detail |
public static SingletonIDCache getSingletonIDCache()
protected static void instantiateCache()
Because of the thread lineup, the initial conditional test
is actually necessary.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||