public class RedissonLockEntry extends Object implements PubSubEntry<RedissonLockEntry>
Constructor and Description |
---|
RedissonLockEntry(RPromise<RedissonLockEntry> promise) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(Runnable listener) |
void |
aquire() |
Semaphore |
getLatch() |
ConcurrentLinkedQueue<Runnable> |
getListeners() |
RPromise<RedissonLockEntry> |
getPromise() |
int |
release() |
boolean |
removeListener(Runnable listener) |
public RedissonLockEntry(RPromise<RedissonLockEntry> promise)
public void aquire()
aquire
in interface PubSubEntry<RedissonLockEntry>
public int release()
release
in interface PubSubEntry<RedissonLockEntry>
public RPromise<RedissonLockEntry> getPromise()
getPromise
in interface PubSubEntry<RedissonLockEntry>
public void addListener(Runnable listener)
public boolean removeListener(Runnable listener)
public ConcurrentLinkedQueue<Runnable> getListeners()
public Semaphore getLatch()
Copyright © 2014–2018 The Redisson Project. All rights reserved.