public class PubSubClusterEndpoint<K,V> extends PubSubEndpoint<K,V>
channel| Constructor and Description |
|---|
PubSubClusterEndpoint(ClientOptions clientOptions,
ClientResources clientResources)
Initialize a new instance that handles commands from the supplied queue.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(RedisClusterPubSubListener<K,V> listener)
Add a new
listener. |
RedisClusterPubSubListener<K,V> |
getUpstreamListener() |
protected void |
notifyListeners(PubSubOutput<K,V,V> output) |
void |
removeListener(RedisClusterPubSubListener<K,V> listener)
Remove an existing
listener. |
void |
setNodeMessagePropagation(boolean nodeMessagePropagation) |
addListener, getChannels, getListeners, getPatterns, hasChannelSubscriptions, hasPatternSubscriptions, notifyChannelActive, notifyMessage, removeListener, write, writeclose, closeAsync, doExclusive, drainCommands, flushCommands, getClientResources, initialState, isClosed, logPrefix, notifyChannelInactive, notifyDrainQueuedCommands, notifyException, registerConnectionWatchdog, reset, setAutoFlushCommands, setConnectionFacade, writeToBufferpublic PubSubClusterEndpoint(ClientOptions clientOptions, ClientResources clientResources)
clientOptions - client options for this connection, must not be nullclientResources - client resources for this connection, must not be null.public void addListener(RedisClusterPubSubListener<K,V> listener)
listener.listener - the listener, must not be null.public RedisClusterPubSubListener<K,V> getUpstreamListener()
public void removeListener(RedisClusterPubSubListener<K,V> listener)
listener.listener - the listener, must not be null.public void setNodeMessagePropagation(boolean nodeMessagePropagation)
protected void notifyListeners(PubSubOutput<K,V,V> output)
notifyListeners in class PubSubEndpoint<K,V>Copyright © 2021 lettuce.io. All rights reserved.