public class PubSubConnectionEntry extends Object
Constructor | Description |
---|---|
PubSubConnectionEntry(RedisPubSubConnection conn,
int subscriptionsPerConnection) |
Modifier and Type | Method | Description |
---|---|---|
void |
addListener(ChannelName channelName,
RedisPubSubListener<?> listener) |
|
RedisPubSubConnection |
getConnection() |
|
Collection<RedisPubSubListener<?>> |
getListeners(ChannelName channelName) |
|
SubscribeListener |
getSubscribeFuture(ChannelName channel,
PubSubType type) |
|
boolean |
hasListeners(ChannelName channelName) |
|
void |
psubscribe(Codec codec,
ChannelName pattern) |
|
void |
punsubscribe(ChannelName channel,
RedisPubSubListener<?> listener) |
|
int |
release() |
|
boolean |
removeAllListeners(ChannelName channelName) |
|
boolean |
removeListener(ChannelName channelName,
int listenerId) |
|
boolean |
removeListener(ChannelName channelName,
EventListener msgListener) |
|
void |
subscribe(Codec codec,
ChannelName channelName) |
|
int |
tryAcquire() |
|
void |
unsubscribe(ChannelName channel,
RedisPubSubListener<?> listener) |
public PubSubConnectionEntry(RedisPubSubConnection conn, int subscriptionsPerConnection)
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 int tryAcquire()
public int release()
public void subscribe(Codec codec, ChannelName channelName)
public void psubscribe(Codec codec, ChannelName pattern)
public SubscribeListener getSubscribeFuture(ChannelName channel, PubSubType type)
public void unsubscribe(ChannelName channel, RedisPubSubListener<?> listener)
public void punsubscribe(ChannelName channel, RedisPubSubListener<?> listener)
public RedisPubSubConnection getConnection()
Copyright © 2014–2018 The Redisson Project. All rights reserved.