Cache Implementation with ReentrantReadWriteLock BUT how to lock upgrade??
Joined: Oct 10, 2002
I have a question about lock upgrading.Specifically what bothers me is between readlock.unlock() and following writelock.lock()...
I am providing a nearly complete implementation for a sample cache.I just omitted actual loading of cached data from database.
I appreciate if you can review the code and share your thoughts. I tried to express my concern in the java comments .