Class RedisClusterNode.SlotRange

java.lang.Object
org.springframework.data.redis.connection.RedisClusterNode.SlotRange
Enclosing class:
RedisClusterNode

public static class RedisClusterNode.SlotRange extends Object
Since:
1.7
Author:
Christoph Strobl
  • Constructor Details

    • SlotRange

      public SlotRange(Integer lowerBound, Integer upperBound)
      Parameters:
      lowerBound - must not be null.
      upperBound - must not be null.
    • SlotRange

      public SlotRange(Collection<Integer> range)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • contains

      public boolean contains(int slot)
      Parameters:
      slot -
      Returns:
      true when slot is part of the range.
    • getSlots

      public Set<Integer> getSlots()
      Returns:
    • getSlotsArray

      public int[] getSlotsArray()
    • empty

      public static RedisClusterNode.SlotRange empty()