Class RedisClusterNode.SlotRange
java.lang.Object
org.springframework.data.redis.connection.RedisClusterNode.SlotRange
- Enclosing class:
- RedisClusterNode
- Since:
- 1.7
- Author:
- Christoph Strobl, daihuabin, John Blum
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(int slot) Determines whether thisRedisClusterNode.SlotRange
contains the givenslot
, which implies this cluster nodes manages the slot holding data stored in Redis.static RedisClusterNode.SlotRange
empty()
Factory method used to construct a new, emptyRedisClusterNode.SlotRange
.getSlots()
Gets all slots in thisRedisClusterNode.SlotRange
managed by this cluster node.int[]
toString()
-
Constructor Details
-
SlotRange
- Parameters:
lowerBound
- must not be null.upperBound
- must not be null.
-
SlotRange
-
SlotRange
-
-
Method Details
-
empty
Factory method used to construct a new, emptyRedisClusterNode.SlotRange
.- Returns:
- a new, empty
RedisClusterNode.SlotRange
.
-
contains
public boolean contains(int slot) Determines whether thisRedisClusterNode.SlotRange
contains the givenslot
, which implies this cluster nodes manages the slot holding data stored in Redis.- Parameters:
slot
-slot
to evaluate.- Returns:
- true when slot is part of the range.
-
getSlots
Gets all slots in thisRedisClusterNode.SlotRange
managed by this cluster node.- Returns:
- all slots in this
RedisClusterNode.SlotRange
.
-
getSlotsArray
public int[] getSlotsArray() -
toString
-