mLocks.put(lockPath, distributedLock);
distributedLock.lock();
}
public void unlock(String lockPath) {
DistributedLock distributedLock = mLocks.get(lockPath);
assert distributedLock != null: "mLocks.get(" + lockPath + ") != null";
distributedLock.unlock();
mLocks.remove(lockPath);
}