Class ClusterCommandExecutor.NodeResult<T>
java.lang.Object
org.springframework.data.redis.connection.ClusterCommandExecutor.NodeResult<T>
- Enclosing class:
- ClusterCommandExecutor
ClusterCommandExecutor.NodeResult encapsulates the actual value returned by a ClusterCommandExecutor.ClusterCommandCallback on a given
 RedisClusterNode.- Since:
- 1.7
- Author:
- Christoph Strobl, John Blum
- 
Constructor SummaryConstructorsConstructorDescriptionNodeResult(RedisClusterNode node, T value) Create a newClusterCommandExecutor.NodeResult.NodeResult(RedisClusterNode node, T value, byte[] key) Create a newClusterCommandExecutor.NodeResult.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanbyte[]getKey()Return thebyte[] keymapped to the value stored in Redis.getNode()Get theRedisClusterNodethe command was executed on.getValue()Get the actual value of the command execution.inthashCode()<U> UApply themapper functionto the value and return the mapped value.
- 
Constructor Details- 
NodeResultCreate a newClusterCommandExecutor.NodeResult.- Parameters:
- node- must not be null.
- value- can be null.
 
- 
NodeResultCreate a newClusterCommandExecutor.NodeResult.- Parameters:
- node- must not be null.
- value- can be null.
- key- must not be null.
 
 
- 
- 
Method Details- 
getNodeGet theRedisClusterNodethe command was executed on.- Returns:
- never null.
 
- 
getKeypublic byte[] getKey()Return thebyte[] keymapped to the value stored in Redis.- Returns:
- a byte[] byte arrayof the key mapped to the value stored in Redis.
 
- 
getValueGet the actual value of the command execution.- Returns:
- can be null.
 
- 
mapValueApply themapper functionto the value and return the mapped value.- Type Parameters:
- U- type of the mapped value.
- Parameters:
- mapper- must not be null.
- Returns:
- the mapped value.
- Since:
- 2.1
 
- 
equals
- 
hashCodepublic int hashCode()
 
-