Class DefaultDistributedLockCreator
- java.lang.Object
-
- org.apache.shardingsphere.mode.repository.cluster.lock.impl.DefaultDistributedLockCreator
-
- All Implemented Interfaces:
org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI,DistributedLockCreator<ClusterPersistRepository,DefaultLockTypedProperties>
public final class DefaultDistributedLockCreator extends Object implements DistributedLockCreator<ClusterPersistRepository,DefaultLockTypedProperties>
Default distributed lock creator.
-
-
Constructor Summary
Constructors Constructor Description DefaultDistributedLockCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DistributedLockcreate(String lockKey, ClusterPersistRepository client, DefaultLockTypedProperties props)Create distributed lock.StringgetType()
-
-
-
Method Detail
-
create
public DistributedLock create(String lockKey, ClusterPersistRepository client, DefaultLockTypedProperties props)
Description copied from interface:DistributedLockCreatorCreate distributed lock.- Specified by:
createin interfaceDistributedLockCreator<ClusterPersistRepository,DefaultLockTypedProperties>- Parameters:
lockKey- lock keyclient- clientprops- props- Returns:
- created distributed lock
-
getType
public String getType()
- Specified by:
getTypein interfaceorg.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
-
-