public static class RedisClusterNode.SlotRange extends Object
Constructor and Description |
---|
SlotRange(Collection<Integer> range) |
SlotRange(Integer lowerBound,
Integer upperBound) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(int slot) |
static RedisClusterNode.SlotRange |
empty() |
Set<Integer> |
getSlots() |
int[] |
getSlotsArray() |
String |
toString() |
public SlotRange(Integer lowerBound, Integer upperBound)
lowerBound
- must not be null.upperBound
- must not be null.public SlotRange(Collection<Integer> range)
public boolean contains(int slot)
slot
- public int[] getSlotsArray()
public static RedisClusterNode.SlotRange empty()
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.