Module lettuce.core

Class ClusterSlotRange

java.lang.Object
io.lettuce.core.cluster.models.slots.ClusterSlotRange
All Implemented Interfaces:
Serializable

public class ClusterSlotRange
extends Object
implements Serializable
Represents a range of slots together with its master and replicas.
Since:
3.0
Author:
Mark Paluch
See Also:
Serialized Form
  • Constructor Details

    • ClusterSlotRange

      public ClusterSlotRange()
    • ClusterSlotRange

      public ClusterSlotRange​(int from, int to, RedisClusterNode upstream, List<RedisClusterNode> replicaNodes)
      Constructs a ClusterSlotRange
      Parameters:
      from - from slot
      to - to slot
      upstream - master for the slots, may be null
      replicaNodes - list of replicas must not be null but may be empty
  • Method Details