K - Key type.V - Value type.public interface BaseNodeSelectionAsyncCommands<K,V>
| Modifier and Type | Method and Description |
|---|---|
<T> AsyncExecutions<T> |
dispatch(ProtocolKeyword type,
CommandOutput<K,V,T> output)
Dispatch a command to the Redis Server.
|
<T> AsyncExecutions<T> |
dispatch(ProtocolKeyword type,
CommandOutput<K,V,T> output,
CommandArgs<K,V> args)
Dispatch a command to the Redis Server.
|
AsyncExecutions<V> |
echo(V msg)
Echo the given string.
|
AsyncExecutions<String> |
ping()
Ping the server.
|
AsyncExecutions<Long> |
publish(K channel,
V message)
Post a message to a channel.
|
AsyncExecutions<List<K>> |
pubsubChannels()
Lists the currently *active channels*.
|
AsyncExecutions<List<K>> |
pubsubChannels(K channel)
Lists the currently *active channels*.
|
AsyncExecutions<Long> |
pubsubNumpat()
Returns the number of subscriptions to patterns.
|
AsyncExecutions<Map<K,Long>> |
pubsubNumsub(K... channels)
Returns the number of subscribers (not counting clients subscribed to patterns) for the specified channels.
|
AsyncExecutions<String> |
quit()
Instructs Redis to disconnect the connection.
|
AsyncExecutions<List<Object>> |
role()
Return the role of the instance in the context of replication.
|
AsyncExecutions<Long> |
waitForReplication(int replicas,
long timeout)
Wait for replication.
|
AsyncExecutions<Long> publish(K channel, V message)
channel - the channel type: key.message - the message type: value.AsyncExecutions<List<K>> pubsubChannels()
AsyncExecutions<List<K>> pubsubChannels(K channel)
channel - the key.AsyncExecutions<Map<K,Long>> pubsubNumsub(K... channels)
channels - channel keys.AsyncExecutions<Long> pubsubNumpat()
AsyncExecutions<V> echo(V msg)
msg - the message type: value.AsyncExecutions<List<Object>> role()
AsyncExecutions<String> ping()
AsyncExecutions<String> quit()
StatefulConnection.close() to close connections and
release resources.AsyncExecutions<Long> waitForReplication(int replicas, long timeout)
replicas - minimum number of replicas.timeout - timeout in milliseconds.<T> AsyncExecutions<T> dispatch(ProtocolKeyword type, CommandOutput<K,V,T> output)
T - response type.type - the command, must not be null.output - the command output, must not be null.<T> AsyncExecutions<T> dispatch(ProtocolKeyword type, CommandOutput<K,V,T> output, CommandArgs<K,V> args)
T - response type.type - the command, must not be null.output - the command output, must not be null.args - the command arguments, must not be null.Copyright © 2021 lettuce.io. All rights reserved.