Class ClusterCommandExecutor.NodeResult<T>

java.lang.Object
org.springframework.data.redis.connection.ClusterCommandExecutor.NodeResult<T>
Type Parameters:
T -
Enclosing class:
ClusterCommandExecutor

public static class ClusterCommandExecutor.NodeResult<T> extends Object
Since:
1.7
Author:
Christoph Strobl
  • Constructor Details

  • Method Details

    • getValue

      @Nullable public T getValue()
      Get the actual value of the command execution.
      Returns:
      can be null.
    • getNode

      public RedisClusterNode getNode()
      Get the RedisClusterNode the command was executed on.
      Returns:
      never null.
    • getKey

      public byte[] getKey()
      Returns:
    • mapValue

      @Nullable public <U> U mapValue(Function<? super T,? extends U> mapper)
      Apply the mapper function to 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