in mode/cluster/repository/consul/src/main/java/org/apache/shardingsphere/mode/repository/cluster/consul/lock/ConsulDistributedLock.java [64:69]
public ConsulDistributedLock(final String lockKey, final ConsulClient client, final ConsulProperties props) {
lockPath = String.format(LOCK_PATH_PATTERN, lockKey);
this.client = client;
timeToLiveSeconds = props.getValue(ConsulPropertyKey.TIME_TO_LIVE_SECONDS);
lockSessionId = new ThreadLocal<>();
}