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