T
- public static class ClusterCommandExecutor.NodeResult<T> extends Object
ClusterCommandExecutor.NodeResult
encapsules the actual value returned by a ClusterCommandExecutor.ClusterCommandCallback
on a given
RedisClusterNode
.Constructor and Description |
---|
NodeResult(RedisClusterNode node,
T value)
Create new
ClusterCommandExecutor.NodeResult . |
NodeResult(RedisClusterNode node,
T value,
byte[] key)
Create new
ClusterCommandExecutor.NodeResult . |
Modifier and Type | Method and Description |
---|---|
byte[] |
getKey() |
RedisClusterNode |
getNode()
Get the
RedisClusterNode the command was executed on. |
T |
getValue()
Get the actual value of the command execution.
|
public NodeResult(RedisClusterNode node, T value)
ClusterCommandExecutor.NodeResult
.node
- value
- public NodeResult(RedisClusterNode node, T value, byte[] key)
ClusterCommandExecutor.NodeResult
.node
- value
- public T getValue()
public RedisClusterNode getNode()
RedisClusterNode
the command was executed on.public byte[] getKey()
Copyright © 2011-2016–2016 Pivotal Software, Inc.. All rights reserved.