Interface DistributedLockCreator<C,P extends org.apache.shardingsphere.infra.util.props.TypedProperties<?>>
- Type Parameters:
C- type of distributed lock clientP- type of typed properties
- All Superinterfaces:
org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
- All Known Implementing Classes:
DefaultDistributedLockCreator
public interface DistributedLockCreator<C,P extends org.apache.shardingsphere.infra.util.props.TypedProperties<?>>
extends org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
Distributed lock creator.
-
Method Summary
Modifier and TypeMethodDescriptionCreate distributed lock.Methods inherited from interface org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
getType, getTypeAliases, init, isDefault
-
Method Details
-
create
Create distributed lock.- Parameters:
lockKey- lock keyclient- clientprops- props- Returns:
- created distributed lock
-