Package org.redisson
Class RedissonLockEntry
- java.lang.Object
-
- org.redisson.RedissonLockEntry
-
- All Implemented Interfaces:
PubSubEntry<RedissonLockEntry>
public class RedissonLockEntry extends Object implements PubSubEntry<RedissonLockEntry>
- Author:
- Nikita Koksharov
-
-
Constructor Summary
Constructors Constructor Description RedissonLockEntry(RPromise<RedissonLockEntry> promise)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acquire()
int
acquired()
void
addListener(Runnable listener)
Semaphore
getLatch()
ConcurrentLinkedQueue<Runnable>
getListeners()
RPromise<RedissonLockEntry>
getPromise()
int
release()
boolean
removeListener(Runnable listener)
-
-
-
Constructor Detail
-
RedissonLockEntry
public RedissonLockEntry(RPromise<RedissonLockEntry> promise)
-
-
Method Detail
-
acquired
public int acquired()
-
acquire
public void acquire()
- Specified by:
acquire
in interfacePubSubEntry<RedissonLockEntry>
-
release
public int release()
- Specified by:
release
in interfacePubSubEntry<RedissonLockEntry>
-
getPromise
public RPromise<RedissonLockEntry> getPromise()
- Specified by:
getPromise
in interfacePubSubEntry<RedissonLockEntry>
-
addListener
public void addListener(Runnable listener)
-
removeListener
public boolean removeListener(Runnable listener)
-
getListeners
public ConcurrentLinkedQueue<Runnable> getListeners()
-
getLatch
public Semaphore getLatch()
-
-