@Deprecated public class JedisDistributedLock extends Object implements Lock
| 构造器和说明 | 
|---|
| JedisDistributedLock(redis.clients.jedis.util.Pool<redis.clients.jedis.Jedis> jedisPool,
                    String key)已过时。  | 
public JedisDistributedLock(redis.clients.jedis.util.Pool<redis.clients.jedis.Jedis> jedisPool,
                            String key)
public void lockInterruptibly()
                       throws InterruptedException
lockInterruptibly 在接口中 LockInterruptedExceptionpublic boolean tryLock(long time,
                       TimeUnit unit)
                throws InterruptedException
tryLock 在接口中 LockInterruptedExceptionpublic Condition newCondition()
newCondition 在接口中 LockCopyright © 2024. All rights reserved.