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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(int slot) Determines whether thisRedisClusterNode.SlotRangecontains the givenslot, which implies this cluster nodes manages the slot holding data stored in Redis.static RedisClusterNode.SlotRangeempty()Factory method used to construct a new, emptyRedisClusterNode.SlotRange.getSlots()Gets all slots in thisRedisClusterNode.SlotRangemanaged 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.SlotRangecontains the givenslot, which implies this cluster nodes manages the slot holding data stored in Redis.- Parameters:
 slot-slotto evaluate.- Returns:
 - true when slot is part of the range.
 
 - 
getSlots
Gets all slots in thisRedisClusterNode.SlotRangemanaged by this cluster node.- Returns:
 - all slots in this 
RedisClusterNode.SlotRange. 
 - 
getSlotsArray
public int[] getSlotsArray() - 
toString
 
 -