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 -
Method Summary
Modifier and TypeMethodDescriptioncreate(String lockKey, ClusterPersistRepository client, DefaultLockTypedProperties props) Create distributed lock.getType()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
getTypeAliases, init, isDefault
-
Constructor Details
-
DefaultDistributedLockCreator
public DefaultDistributedLockCreator()
-
-
Method Details
-
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
- Specified by:
getTypein interfaceorg.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
-