public boolean await(long timeout, TimeUnit timeUnit) throws InterruptedException {
    final boolean result = latch.await(timeout, timeUnit);
    String lockRequestStr = lockRequest.toString().replace("\n", ", ");
    if (result) {
      LOG.info("Acquired " + lockRequestStr);
    } else {
      LOG.info(String.format("Failed acquire in %s %s of %s", timeout, timeUnit.toString(),
        lockRequestStr));
    }
    return result;
  }
@param timeout in milliseconds. If set to 0, waits indefinitely.
@return true if lock was acquired; and false if waiting time elapsed before lock could be
        acquired.
hbase-server/src/main/java/org/apache/hadoop/hbase/client/locking/EntityLock.java