public class LettuceSubscription extends AbstractSubscription
| Modifier | Constructor and Description |
|---|---|
protected |
LettuceSubscription(MessageListener listener,
io.lettuce.core.pubsub.StatefulRedisPubSubConnection<byte[],byte[]> pubsubConnection,
LettuceConnectionProvider connectionProvider)
Creates a new
LettuceSubscription given MessageListener, StatefulRedisPubSubConnection, and
LettuceConnectionProvider. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doClose()
Shutdown the subscription and free any resources held.
|
protected void |
doPsubscribe(byte[]... patterns)
Subscribe to the given patterns
|
protected void |
doPUnsubscribe(boolean all,
byte[]... patterns)
Pattern unsubscribe.
|
protected void |
doSubscribe(byte[]... channels)
Subscribe to the given channels.
|
protected void |
doUnsubscribe(boolean all,
byte[]... channels)
Channel unsubscribe.
|
protected io.lettuce.core.pubsub.StatefulRedisPubSubConnection<byte[],byte[]> |
getNativeConnection() |
close, getChannels, getListener, getPatterns, isAlive, pSubscribe, pUnsubscribe, pUnsubscribe, subscribe, unsubscribe, unsubscribeprotected LettuceSubscription(MessageListener listener, io.lettuce.core.pubsub.StatefulRedisPubSubConnection<byte[],byte[]> pubsubConnection, LettuceConnectionProvider connectionProvider)
LettuceSubscription given MessageListener, StatefulRedisPubSubConnection, and
LettuceConnectionProvider.listener - the listener to notify, must not be null.pubsubConnection - must not be null.connectionProvider - must not be null.protected io.lettuce.core.pubsub.StatefulRedisPubSubConnection<byte[],byte[]> getNativeConnection()
protected void doClose()
AbstractSubscriptiondoClose in class AbstractSubscriptionprotected void doPsubscribe(byte[]... patterns)
AbstractSubscriptiondoPsubscribe in class AbstractSubscriptionpatterns - patterns to subscribe toprotected void doPUnsubscribe(boolean all,
byte[]... patterns)
AbstractSubscriptiondoPUnsubscribe in class AbstractSubscriptionall - true if all the patterns are unsubscribed (used as a hint for the underlying implementation).patterns - patterns to be unsubscribedprotected void doSubscribe(byte[]... channels)
AbstractSubscriptiondoSubscribe in class AbstractSubscriptionchannels - channels to subscribe toprotected void doUnsubscribe(boolean all,
byte[]... channels)
AbstractSubscriptiondoUnsubscribe in class AbstractSubscriptionall - true if all the channels are unsubscribed (used as a hint for the underlying implementation).channels - channels to be unsubscribedCopyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.