Class ZooKeeperDistributedLockCreator
- java.lang.Object
-
- org.apache.shardingsphere.mode.repository.cluster.zookeeper.lock.ZooKeeperDistributedLockCreator
-
- All Implemented Interfaces:
org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI,DistributedLockCreator<org.apache.curator.framework.CuratorFramework,ZookeeperProperties>
public final class ZooKeeperDistributedLockCreator extends Object implements DistributedLockCreator<org.apache.curator.framework.CuratorFramework,ZookeeperProperties>
ZooKeeper distributed lock creator.
-
-
Constructor Summary
Constructors Constructor Description ZooKeeperDistributedLockCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DistributedLockcreate(String lockKey, org.apache.curator.framework.CuratorFramework client, ZookeeperProperties props)StringgetType()
-
-
-
Method Detail
-
create
public DistributedLock create(String lockKey, org.apache.curator.framework.CuratorFramework client, ZookeeperProperties props)
- Specified by:
createin interfaceDistributedLockCreator<org.apache.curator.framework.CuratorFramework,ZookeeperProperties>
-
getType
public String getType()
- Specified by:
getTypein interfaceorg.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
-
-