|
Spring Data Key-Value | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Subscription
Subscription for Redis channels.
Method Summary | |
---|---|
Collection<byte[]> |
getChannels()
Returns the (named) channels for this subscription. |
MessageListener |
getListener()
Returns the listener used for this subscription. |
Collection<byte[]> |
getPatterns()
Returns the channel patters for this subscription. |
boolean |
isAlive()
Indicates whether this subscription is still 'alive' or not. |
void |
pSubscribe(byte[]... patterns)
Adds the given channel patterns to the current subscription. |
void |
pUnsubscribe()
Cancels the subscription for all channels matched by patterns. |
void |
pUnsubscribe(byte[]... patterns)
Cancels the subscription for all channels matching the given patterns. |
void |
subscribe(byte[]... channels)
Adds the given channels to the current subscription. |
void |
unsubscribe()
Cancels the current subscription for all channels given by name. |
void |
unsubscribe(byte[]... channels)
Cancels the current subscription for all given channels. |
Method Detail |
---|
void subscribe(byte[]... channels)
channels
- channel namesvoid pSubscribe(byte[]... patterns)
patterns
- channel patternsvoid unsubscribe()
void unsubscribe(byte[]... channels)
channels
- channel namesvoid pUnsubscribe()
void pUnsubscribe(byte[]... patterns)
patterns
- Collection<byte[]> getChannels()
Collection<byte[]> getPatterns()
MessageListener getListener()
boolean isAlive()
|
Spring Data Key-Value | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |