public class CountDownLatchPubSub extends Object
Modifier and Type | Field and Description |
---|---|
static Long |
NEW_COUNT_MESSAGE |
static Long |
ZERO_COUNT_MESSAGE |
Constructor and Description |
---|
CountDownLatchPubSub(PublishSubscribeService service) |
Modifier and Type | Method and Description |
---|---|
protected RedissonCountDownLatchEntry |
createEntry(RPromise<RedissonCountDownLatchEntry> newPromise) |
protected void |
onMessage(RedissonCountDownLatchEntry value,
Long message) |
RFuture<E> |
subscribe(String entryName,
String channelName) |
void |
unsubscribe(E entry,
String entryName,
String channelName) |
public static final Long ZERO_COUNT_MESSAGE
public static final Long NEW_COUNT_MESSAGE
public CountDownLatchPubSub(PublishSubscribeService service)
protected RedissonCountDownLatchEntry createEntry(RPromise<RedissonCountDownLatchEntry> newPromise)
protected void onMessage(RedissonCountDownLatchEntry value, Long message)
Copyright © 2014–2020 Redisson. All rights reserved.