Class IdLock

java.lang.Object
org.apache.hadoop.hbase.util.IdLock

@Private public class IdLock extends Object
Allows multiple concurrent clients to lock on a numeric id with a minimal memory overhead. The intended usage is as follows:
 IdLock.Entry lockEntry = idLock.getLockEntry(id);
 try {
   // User code.
 } finally {
   idLock.releaseLockEntry(lockEntry);
 }