Interface JedisClusterConnection.JedisClusterCommandCallback<T>
- Type Parameters:
T-
- All Superinterfaces:
ClusterCommandExecutor.ClusterCommandCallback<UnifiedJedis, T>
- Enclosing class:
JedisClusterConnection
protected static interface JedisClusterConnection.JedisClusterCommandCallback<T>
extends ClusterCommandExecutor.ClusterCommandCallback<UnifiedJedis, T>
- Since:
- 1.7
- Author:
- Christoph Strobl
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionfrom(ProtocolCommand command, Object... args) from(ProtocolCommand command, Consumer<CommandArguments> argumentsConsumer) Create a newJedisClusterCommandCallbackfrom aProtocolCommandaCommandArgumentsconsumer to customize command arguments.Methods inherited from interface ClusterCommandExecutor.ClusterCommandCallback
doInCluster
-
Method Details
-
from
static JedisClusterConnection.JedisClusterCommandCallback<Object> from(ProtocolCommand command, Object... args) - Parameters:
command- the command to invoke.args- command arguments.- Returns:
- a new callback that invokes the given
ProtocolCommand. - Since:
- 4.2
-
from
static JedisClusterConnection.JedisClusterCommandCallback<Object> from(ProtocolCommand command, Consumer<CommandArguments> argumentsConsumer) Create a newJedisClusterCommandCallbackfrom aProtocolCommandaCommandArgumentsconsumer to customize command arguments.- Parameters:
command- the command to invoke.argumentsConsumer- command argument consumer.- Returns:
- a new callback that invokes the given
ProtocolCommand. - Since:
- 4.2
-