| Constructor and Description |
|---|
JedisLock(redis.clients.util.Pool<redis.clients.jedis.Jedis> jedis,
String internalLockName) |
| Modifier and Type | Method and Description |
|---|---|
String |
getLockName() |
void |
lock() |
void |
lockInterruptibly() |
Condition |
newCondition() |
boolean |
tryLock() |
boolean |
tryLock(long time,
TimeUnit unit) |
void |
unlock() |
public JedisLock(redis.clients.util.Pool<redis.clients.jedis.Jedis> jedis,
String internalLockName)
public void lockInterruptibly()
throws InterruptedException
lockInterruptibly in interface LockInterruptedExceptionpublic boolean tryLock(long time,
TimeUnit unit)
throws InterruptedException
tryLock in interface LockInterruptedExceptionpublic Condition newCondition()
newCondition in interface Lockpublic String getLockName()
Copyright © 2017 Grakn Labs Ltd. All rights reserved.