Interface DistributedLockCreator<C,​P extends org.apache.shardingsphere.infra.util.props.TypedProperties<?>>

  • Type Parameters:
    C - type of distributed lock client
    P - 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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      DistributedLock create​(String lockKey, C client, P props)
      Create distributed lock.
      • Methods inherited from interface org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI

        getType, getTypeAliases, init, isDefault
    • Method Detail

      • create

        DistributedLock create​(String lockKey,
                               C client,
                               P props)
        Create distributed lock.
        Parameters:
        lockKey - lock key
        client - client
        props - props
        Returns:
        created distributed lock