Class HashLock
- java.lang.Object
-
- org.apache.iotdb.commons.concurrent.HashLock
-
public class HashLock extends java.lang.ObjectThis class manages an array of locks and use the hash code of an object as an index of the array to find the corresponding lock, so that the operations on the same key (string) can be prevented while the number of locks remain controlled.
-
-
Constructor Summary
Constructors Constructor Description HashLock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreadLock(java.lang.Object obj)voidreadUnlock(java.lang.Object obj)voidwriteLock(java.lang.Object obj)voidwriteUnlock(java.lang.Object obj)
-