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
All Methods Instance Methods Abstract Methods 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 Detail
-
psubscribe
AsyncExecutions<Void> psubscribe(K... patterns)
Listen for messages published to channels matching the given patterns.- Parameters:
patterns
- the patterns- Returns:
- RedisFuture<Void> Future to synchronize
psubscribe
completion
-
punsubscribe
AsyncExecutions<Void> punsubscribe(K... patterns)
Stop listening for messages posted to channels matching the given patterns.- Parameters:
patterns
- the patterns- Returns:
- RedisFuture<Void> Future to synchronize
punsubscribe
completion
-
subscribe
AsyncExecutions<Void> subscribe(K... channels)
Listen for messages published to the given channels.- Parameters:
channels
- the channels- Returns:
- RedisFuture<Void> Future to synchronize
subscribe
completion
-
unsubscribe
AsyncExecutions<Void> unsubscribe(K... channels)
Stop listening for messages posted to the given channels.- Parameters:
channels
- the channels- Returns:
- RedisFuture<Void> Future to synchronize
unsubscribe
completion.
-
-