com.github.blackshadowwalker.spring.distributelock.redis.RedisLock Maven / Gradle / Ivy
package com.github.blackshadowwalker.spring.distributelock.redis;
import com.github.blackshadowwalker.spring.distributelock.Lock;
import com.github.blackshadowwalker.spring.distributelock.LockException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.dao.InvalidDataAccessApiUsageException;
import org.springframework.data.redis.core.BoundValueOperations;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.util.StringUtils;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;
/**
* Created by ASUS on 2016/8/16.
*/
public class RedisLock implements Lock {
private static Log log = LogFactory.getLog(RedisLock.class);
private RedisTemplate
© 2015 - 2025 Weber Informatics LLC | Privacy Policy