org.apache.hadoop.hbase.regionserver
Class HRegion.RowLock

java.lang.Object
  extended by org.apache.hadoop.hbase.regionserver.HRegion.RowLock
Enclosing class:
HRegion

public static class HRegion.RowLock
extends Object

Row lock held by a given thread. One thread may acquire multiple locks on the same row simultaneously. The locks must be released by calling release() from the same thread.


Method Summary
 void release()
          Release the given lock.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

release

public void release()
Release the given lock. If there are no remaining locks held by the current thread then unlock the row and allow other threads to acquire the lock.

Throws:
IllegalArgumentException - if called by a different thread than the lock owning thread


Copyright © 2015 The Apache Software Foundation. All rights reserved.