HTable table = new HTable(conf, "testtable");
// vv RowLockExample
System.out.println("Taking out lock...");
RowLock lock = table.lockRow(ROW1); // co RowLockExample-3-Lock Lock the entire row.
System.out.println("Lock ID: " + lock.getLockId());
Thread thread = new Thread(new UnlockedPut()); // co RowLockExample-4-Start Start the asynchronous thread, which will block.
thread.start();