Package org.redisson.pubsub
Class PubSubConnectionEntry
- java.lang.Object
-
- org.redisson.pubsub.PubSubConnectionEntry
-
public class PubSubConnectionEntry extends Object
- Author:
- Nikita Koksharov
-
-
Constructor Summary
Constructors Constructor Description PubSubConnectionEntry(RedisPubSubConnection conn, int subscriptionsPerConnection)
-
Method Summary
-
-
-
Constructor Detail
-
PubSubConnectionEntry
public PubSubConnectionEntry(RedisPubSubConnection conn, int subscriptionsPerConnection)
-
-
Method Detail
-
countListeners
public int countListeners(ChannelName channelName)
-
hasListeners
public boolean hasListeners(ChannelName channelName)
-
getListeners
public Queue<RedisPubSubListener<?>> getListeners(ChannelName channelName)
-
addListener
public void addListener(ChannelName channelName, RedisPubSubListener<?> listener)
-
removeListener
public boolean removeListener(ChannelName channelName, EventListener msgListener)
-
removeListener
public boolean removeListener(ChannelName channelName, int listenerId)
-
removeListener
public void removeListener(ChannelName channelName, RedisPubSubListener<?> listener)
-
tryAcquire
public int tryAcquire()
-
release
public int release()
-
subscribe
public io.netty.channel.ChannelFuture subscribe(Codec codec, ChannelName channelName)
-
psubscribe
public io.netty.channel.ChannelFuture psubscribe(Codec codec, ChannelName pattern)
-
getSubscribeFuture
public SubscribeListener getSubscribeFuture(ChannelName channel, PubSubType type)
-
unsubscribe
public io.netty.channel.ChannelFuture unsubscribe(ChannelName channel, RedisPubSubListener<?> listener)
-
punsubscribe
public io.netty.channel.ChannelFuture punsubscribe(ChannelName channel, RedisPubSubListener<?> listener)
-
getConnection
public RedisPubSubConnection getConnection()
-
-