Thursday, May 30, 2002 06:34 AM
I need to syncronize on Individual objects within a
hashMap. i.e can I lock individual objects stored in a
HashMap without having to lock the entire Hashmap.
Re: Synchronizing Objects within HashMap
Saturday, June 1, 2002 02:44 AM
Map m = Collections.synchronizedMap(new HashMap(...));
Please read the JavaDoc of java.util.HashMap.You can find something about syncronization there.
Thursday, May 30, 2002 06:37 AM