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(PubSubMessage<K,V> output) |
void |
removeListener(RedisClusterPubSubListener<K,V> listener)
Remove an existing
listener . |
void |
setNodeMessagePropagation(boolean nodeMessagePropagation) |
addListener, containsViolatingCommands, getChannels, getListeners, getPatterns, getShardChannels, hasChannelSubscriptions, hasPatternSubscriptions, hasShardChannelSubscriptions, isSubscribed, notifyChannelActive, rejectCommand, rejectCommands, removeListener, write, write
addListener, close, closeAsync, disconnect, doExclusive, drainCommands, flushCommands, getClientResources, getId, getProtocolVersion, getPushListeners, initialState, isClosed, logPrefix, notifyChannelInactive, notifyDrainQueuedCommands, notifyException, registerConnectionWatchdog, removeListener, reset, setAutoFlushCommands, setConnectionFacade, writeToBuffer
public PubSubClusterEndpoint(ClientOptions clientOptions, ClientResources clientResources)
clientOptions
- client options for this connection, must not be null
clientResources
- 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(PubSubMessage<K,V> output)
notifyListeners
in class PubSubEndpoint<K,V>
Copyright © 2024 lettuce.io. All rights reserved.