public class PubSubClusterEndpoint<K,V> extends PubSubEndpoint<K,V>
channel
Constructor and Description |
---|
PubSubClusterEndpoint(ClientOptions clientOptions)
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, notifyMessage, removeListener
close, doExclusive, drainCommands, flushCommands, initialState, isClosed, logPrefix, notifyChannelActive, notifyChannelInactive, notifyDrainQueuedCommands, notifyException, registerConnectionWatchdog, reset, setAutoFlushCommands, setConnectionFacade, write, write, writeToBuffer
public PubSubClusterEndpoint(ClientOptions clientOptions)
clientOptions
- client options for this connection, must not be nullpublic 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 © 2018 lettuce.io. All rights reserved.