Module lettuce.core
Interface NodeSelectionPubSubAsyncCommands<K,V>
public interface NodeSelectionPubSubAsyncCommands<K,V>
Asynchronous executed commands on a node selection for Pub/Sub.
- Since:
- 4.4
- Author:
- Mark Paluch
-
Method Summary
Modifier and Type Method Description AsyncExecutions<Void>psubscribe(K... patterns)Listen for messages published to channels matching the given patterns.AsyncExecutions<Void>punsubscribe(K... patterns)Stop listening for messages posted to channels matching the given patterns.AsyncExecutions<Void>subscribe(K... channels)Listen for messages published to the given channels.AsyncExecutions<Void>unsubscribe(K... channels)Stop listening for messages posted to the given channels.
-
Method Details
-
psubscribe
Listen for messages published to channels matching the given patterns.- Parameters:
patterns- the patterns- Returns:
- RedisFuture<Void> Future to synchronize
psubscribecompletion
-
punsubscribe
Stop listening for messages posted to channels matching the given patterns.- Parameters:
patterns- the patterns- Returns:
- RedisFuture<Void> Future to synchronize
punsubscribecompletion
-
subscribe
Listen for messages published to the given channels.- Parameters:
channels- the channels- Returns:
- RedisFuture<Void> Future to synchronize
subscribecompletion
-
unsubscribe
Stop listening for messages posted to the given channels.- Parameters:
channels- the channels- Returns:
- RedisFuture<Void> Future to synchronize
unsubscribecompletion.
-