Class DistributedLockHolder
- java.lang.Object
-
- org.apache.shardingsphere.mode.repository.cluster.lock.holder.DistributedLockHolder
-
public final class DistributedLockHolder extends Object
Distributed lock holder.
-
-
Constructor Summary
Constructors Constructor Description DistributedLockHolder(String type, Object client, org.apache.shardingsphere.infra.util.props.TypedProperties<?> props)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DistributedLockgetDistributedLock(String lockKey)Get distributed lock.
-
-
-
Method Detail
-
getDistributedLock
public DistributedLock getDistributedLock(String lockKey)
Get distributed lock.- Parameters:
lockKey- lock key- Returns:
- distributed lock
-
-