java.lang.Object
org.apache.shardingsphere.mode.repository.cluster.lock.holder.DistributedLockHolder

public final class DistributedLockHolder extends Object
Distributed lock holder.
  • Constructor Details

    • DistributedLockHolder

      public DistributedLockHolder(String type, Object client, org.apache.shardingsphere.infra.util.props.TypedProperties<?> props)
  • Method Details

    • getDistributedLock

      public DistributedLock getDistributedLock(String lockKey)
      Get distributed lock.
      Parameters:
      lockKey - lock key
      Returns:
      distributed lock