public class PubSubConnectionEntry extends Object
Constructor and Description |
---|
PubSubConnectionEntry(RedisPubSubConnection conn,
int subscriptionsPerConnection) |
public PubSubConnectionEntry(RedisPubSubConnection conn, int subscriptionsPerConnection)
public int countListeners(ChannelName channelName)
public boolean hasListeners(ChannelName channelName)
public Collection<RedisPubSubListener<?>> getListeners(ChannelName channelName)
public void addListener(ChannelName channelName, RedisPubSubListener<?> listener)
public boolean removeAllListeners(ChannelName channelName)
public boolean removeListener(ChannelName channelName, EventListener msgListener)
public boolean removeListener(ChannelName channelName, int listenerId)
public void removeListener(ChannelName channelName, RedisPubSubListener<?> listener)
public int tryAcquire()
public int release()
public io.netty.channel.ChannelFuture subscribe(Codec codec, ChannelName channelName)
public io.netty.channel.ChannelFuture psubscribe(Codec codec, ChannelName pattern)
public SubscribeListener getSubscribeFuture(ChannelName channel, PubSubType type)
public io.netty.channel.ChannelFuture unsubscribe(ChannelName channel, RedisPubSubListener<?> listener)
public io.netty.channel.ChannelFuture punsubscribe(ChannelName channel, RedisPubSubListener<?> listener)
public RedisPubSubConnection getConnection()
Copyright © 2014–2020 Redisson. All rights reserved.