Package org.redisson.pubsub
Class PubSubConnectionEntry
java.lang.Object
org.redisson.pubsub.PubSubConnectionEntry
- Author:
- Nikita Koksharov
-
Constructor Summary
ConstructorDescriptionPubSubConnectionEntry
(RedisPubSubConnection conn, ServiceManager serviceManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(ChannelName channelName, RedisPubSubListener<?> listener) int
countListeners
(ChannelName channelName) getListeners
(ChannelName channelName) getSubscribeFuture
(ChannelName channel, PubSubType type) boolean
hasListeners
(ChannelName channelName) boolean
isFree()
int
release()
boolean
removeListener
(ChannelName channelName, int listenerId) boolean
removeListener
(ChannelName channelName, EventListener msgListener) void
removeListener
(ChannelName channelName, RedisPubSubListener<?> listener) void
subscribe
(Codec codec, PubSubType type, ChannelName channelName, CompletableFuture<Void> subscribeFuture) toString()
int
void
unsubscribe
(PubSubType commandType, ChannelName channel, RedisPubSubListener<?> listener)
-
Constructor Details
-
PubSubConnectionEntry
-
-
Method Details
-
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, PubSubType type, ChannelName channelName, CompletableFuture<Void> subscribeFuture) -
getSubscribeFuture
-
unsubscribe
public void unsubscribe(PubSubType commandType, ChannelName channel, RedisPubSubListener<?> listener) -
getConnection
-
toString
-