public class PubSubEndpoint<K,V> extends DefaultEndpoint
channel| Constructor and Description |
|---|
PubSubEndpoint(ClientOptions clientOptions)
Initialize a new instance that handles commands from the supplied queue.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(RedisPubSubListener<K,V> listener)
Add a new
listener. |
Set<K> |
getChannels() |
protected List<RedisPubSubListener<K,V>> |
getListeners() |
Set<K> |
getPatterns() |
protected void |
notifyListeners(PubSubOutput<K,V,V> output) |
void |
notifyMessage(PubSubOutput<K,V,V> output) |
void |
removeListener(RedisPubSubListener<K,V> listener)
Remove an existing
listener.. |
close, doExclusive, drainCommands, flushCommands, initialState, isClosed, logPrefix, notifyChannelActive, notifyChannelInactive, notifyDrainQueuedCommands, notifyException, registerConnectionWatchdog, reset, setAutoFlushCommands, setConnectionFacade, write, write, writeToBufferpublic PubSubEndpoint(ClientOptions clientOptions)
clientOptions - client options for this connection, must not be nullpublic void addListener(RedisPubSubListener<K,V> listener)
listener.listener - the listener, must not be null.public void removeListener(RedisPubSubListener<K,V> listener)
listener..listener - the listener, must not be null.protected List<RedisPubSubListener<K,V>> getListeners()
public void notifyMessage(PubSubOutput<K,V,V> output)
protected void notifyListeners(PubSubOutput<K,V,V> output)
Copyright © 2018 lettuce.io. All rights reserved.