public class PubSubConnectionEntry extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PubSubConnectionEntry.Status |
Constructor and Description |
---|
PubSubConnectionEntry(RedisPubSubConnection conn,
int subscriptionsPerConnection) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(String channelName,
RedisPubSubListener<?> listener) |
void |
close() |
RedisPubSubConnection |
getConnection() |
Collection<RedisPubSubListener> |
getListeners(String channelName) |
boolean |
hasListeners(String channelName) |
boolean |
isActive() |
void |
psubscribe(Codec codec,
String pattern) |
void |
punsubscribe(String channel,
RedisPubSubListener listener) |
void |
release() |
void |
removeListener(String channelName,
int listenerId) |
void |
subscribe(Codec codec,
RedisPubSubListener listener,
String channel) |
void |
subscribe(Codec codec,
String channelName) |
boolean |
tryAcquire() |
boolean |
tryClose() |
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 isActive()
public void close()
public void removeListener(String channelName, int listenerId)
public boolean tryAcquire()
public void release()
public void subscribe(Codec codec, RedisPubSubListener listener, String channel)
public void unsubscribe(String channel, RedisPubSubListener listener)
public void punsubscribe(String channel, RedisPubSubListener listener)
public boolean tryClose()
public RedisPubSubConnection getConnection()
Copyright © 2014–2016. All rights reserved.