Class SlotRange

java.lang.Object
com.reve.redis.cluster.slot.SlotRange

public class SlotRange extends Object
A node can contain multiple SlotRange which is the result of re-sharding the cluster This class is aimed to contain the minimum and maximum slot number for such a slot range
  • Field Details

    • minSlot

      public int minSlot
      Starting slot number of this range
    • maxSlot

      public int maxSlot
      Ending slot number of this range
  • Constructor Details

    • SlotRange

      public SlotRange(String str)
      Parse the slot range from String value and assign it to minSlot and maxSlot parameter
      Parameters:
      str - is the String range in format 'minSlot-maxSlot'
  • Method Details