
org.easycluster.easylock.zookeeper.ZooKeeperDistributedLock Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of easylock Show documentation
Show all versions of easylock Show documentation
EasyLock is a framework to provide distributed lock mechanism to support master/slave mode for large scalable distributed applications.
The newest version!
package org.easycluster.easylock.zookeeper;
import org.easycluster.easylock.DefaultDistributedLock;
import org.easycluster.easylock.LockManager;
public class ZooKeeperDistributedLock extends DefaultDistributedLock {
public ZooKeeperDistributedLock(final String lockResource, final String zooKeeperConnectString, final int zooKeeperSessionTimeoutMillis,
final String lockRootNode) {
super(lockResource);
LockManager lockManager = new ZooKeeperLockManager(zooKeeperConnectString, zooKeeperSessionTimeoutMillis, lockRootNode);
setLockManager(lockManager);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy