this.curatorFramework = curatorFramework;
this.pathPrefix = configuration.get(Configuration.LOCK_REPOSITORY_PATH_PREFIX, DEFAULT_PATH_PREFIX);
}
public Lock createLock(String lockName) {
InterProcessLock l = new InterProcessMutex(this.curatorFramework, getPath(lockName));
return new Lock(l, lockName);
}