Package org.redisson.pubsub
Class LockPubSub
- java.lang.Object
-
- org.redisson.pubsub.LockPubSub
-
public class LockPubSub extends Object
- Author:
- Nikita Koksharov
-
-
Field Summary
Fields Modifier and Type Field Description static Long
readUnlockMessage
static Long
unlockMessage
-
Constructor Summary
Constructors Constructor Description LockPubSub()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RedissonLockEntry
createEntry(RPromise<RedissonLockEntry> newPromise)
E
getEntry(String entryName)
protected void
onMessage(RedissonLockEntry value, Long message)
RFuture<E>
subscribe(String entryName, String channelName, PublishSubscribeService subscribeService)
void
unsubscribe(E entry, String entryName, String channelName, PublishSubscribeService subscribeService)
-
-
-
Method Detail
-
createEntry
protected RedissonLockEntry createEntry(RPromise<RedissonLockEntry> newPromise)
-
onMessage
protected void onMessage(RedissonLockEntry value, Long message)
-
unsubscribe
public void unsubscribe(E entry, String entryName, String channelName, PublishSubscribeService subscribeService)
-
getEntry
public E getEntry(String entryName)
-
subscribe
public RFuture<E> subscribe(String entryName, String channelName, PublishSubscribeService subscribeService)
-
-