Howdy All,
I'm storing locks in a HashMap that contains recordNum and Connection instance pairs. RecordNum is the key in the map.
I want some opinions on whether or not I should be concerned with clients who have died an untimely death after locking a record and before unlocking it. (Pardon any puns.)
Is this important? What are some options for implementing?
2nd issue. If I have two clients up and 2nd client is waiting to obtain record lock, my client is unresponsive. I've thought about putting the client's booking logic into a separate
thread, but my current logic can throw several exceptions and I couldn't see how to handle this in a separate thread, since I can't change the signature of run() by adding a "throws" clause. This is probably dumb and has an easy solution.
Any thoughts on either issue?
Thanks,
Debra