A simple implementation of lock striping, using cache entry keys to lock on, primarily used to help make {@link org.infinispan.loader.CacheLoader} implemtations thread safe.
Backed by a set of {@link java.util.concurrent.locks.ReentrantReadWriteLock} instances, and using the key hashcodesto determine buckets.
Since buckets are used, it doesn't matter that the key in question is not removed from the lock map when no longer in use, since the key is not referenced in this class. Rather, the hash code is used.
@author
Manik Surtani
@author Mircea.Markus@jboss.com
@since 4.0