class RedisDistributedLocks {

    public static DistributedLock getLock(String lockName, long lockExpiredTimeSeconds) {
        JedisPool jedisPool = getJedisPool();
        if (jedisPool == null) {
            LOGGER.error("Failed to get jedis pool.");
            return null;
        }

        return new RedisDistributedLock(jedisPool, lockName, lockExpiredTimeSeconds);
    }

}