commons-ref-map-user Mailing List for commons-reference-map
Brought to you by:
micksembwever
You can subscribe to this list here.
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
---|
From: Mck <mi...@se...> - 2009-11-14 16:43:54
|
Provides a Map where values are referenced either weakly or softly. This can be used to cache immutable objects without preventing them from being garbaged collected. Concurrency and synchronisation of this class fallbacks to the Map implementation passed in as the cache parameter in the constructor. For example: use a Hashtable for synchronised access, a ConcurrentHashMap for concurrent access, and a HashMap for single threaded access (make sure to specify the argument indicating single thread use). This implementation improves over org.apache.commons.collections.map.ReferenceMap in that the synchronisation and concurrency is determined through delegation to the map supplied in the constructor as described above. ~mck -- "When there is no enemy within, the enemies outside can't hurt you." African proverb | semb.wever.org | sesat.no | finn.no | |