Package org.redisson.pubsub
Class PubSubConnectionEntry
java.lang.Object
org.redisson.pubsub.PubSubConnectionEntry
- Author:
- Nikita Koksharov
-
Constructor Summary
ConstructorsConstructorDescriptionPubSubConnectionEntry(RedisPubSubConnection conn, ConnectionManager connectionManager, MasterSlaveEntry entry) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(ChannelName channelName, RedisPubSubListener<?> listener) addListeners(ChannelName channelName, CompletableFuture<PubSubConnectionEntry> promise, PubSubType type, AsyncSemaphore lock, RedisPubSubListener<?>... listeners) intcountListeners(ChannelName channelName) getEntry()getListeners(ChannelName channelName) booleanhasListeners(ChannelName channelName) booleanisFree()intrelease()booleanremoveListener(ChannelName channelName, int listenerId) booleanremoveListener(ChannelName channelName, EventListener msgListener) voidremoveListener(ChannelName channelName, RedisPubSubListener<?> listener) voidsubscribe(Codec codec, ChannelName channelName, CompletableFuture<PubSubConnectionEntry> pm, PubSubType type, AsyncSemaphore lock, RedisPubSubListener<?>[] listeners) toString()intvoidunsubscribe(PubSubType commandType, ChannelName channel, RedisPubSubListener<?> listener)
-
Constructor Details
-
PubSubConnectionEntry
public PubSubConnectionEntry(RedisPubSubConnection conn, ConnectionManager connectionManager, MasterSlaveEntry entry)
-
-
Method Details
-
getEntry
-
countListeners
-
hasListeners
-
getListeners
-
addListener
-
removeListener
-
removeListener
-
removeListener
-
tryAcquire
public int tryAcquire() -
release
public int release() -
isFree
public boolean isFree() -
subscribe
public void subscribe(Codec codec, ChannelName channelName, CompletableFuture<PubSubConnectionEntry> pm, PubSubType type, AsyncSemaphore lock, RedisPubSubListener<?>[] listeners) -
unsubscribe
public void unsubscribe(PubSubType commandType, ChannelName channel, RedisPubSubListener<?> listener) -
getConnection
-
toString
-
addListeners
public CompletableFuture<Void> addListeners(ChannelName channelName, CompletableFuture<PubSubConnectionEntry> promise, PubSubType type, AsyncSemaphore lock, RedisPubSubListener<?>... listeners)
-