This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes NX: where can i put the Map of locking and unlocking? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "NX: where can i put the Map of locking and unlocking?" Watch "NX: where can i put the Map of locking and unlocking?" New topic
Author

NX: where can i put the Map of locking and unlocking?

guyue0505
Greenhorn

Joined: May 25, 2003
Posts: 21
In my application , i have a class named LockManager which control the lock and unlock . i think i will need a hashMap in this class. The key is the recNo and the value is the lockCookie of the correspond recNo.
And the lockManager has a function named setMap(Map hashMap){ this.hashMap =
hashMap; }
My question is where can i put the hashMap's declaretion , in Server.java
or other place?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NX: where can i put the Map of locking and unlocking?
 
Similar Threads
synchronized revisted...
the question of the lockmanager
Passed 150/155
Data: Mutition/Singletone
my question about LockManager.java