Interface NodeGroup.Builder

    • Method Detail

      • nodeGroupId

        NodeGroup.Builder nodeGroupId​(String nodeGroupId)

        The identifier for the node group (shard). A Redis (cluster mode disabled) replication group contains only 1 node group; therefore, the node group ID is 0001. A Redis (cluster mode enabled) replication group contains 1 to 90 node groups numbered 0001 to 0090. Optionally, the user can provide the id for a node group.

        Parameters:
        nodeGroupId - The identifier for the node group (shard). A Redis (cluster mode disabled) replication group contains only 1 node group; therefore, the node group ID is 0001. A Redis (cluster mode enabled) replication group contains 1 to 90 node groups numbered 0001 to 0090. Optionally, the user can provide the id for a node group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • status

        NodeGroup.Builder status​(String status)

        The current state of this replication group - creating, available, modifying, deleting.

        Parameters:
        status - The current state of this replication group - creating, available, modifying, deleting.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • primaryEndpoint

        NodeGroup.Builder primaryEndpoint​(Endpoint primaryEndpoint)

        The endpoint of the primary node in this node group (shard).

        Parameters:
        primaryEndpoint - The endpoint of the primary node in this node group (shard).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • readerEndpoint

        NodeGroup.Builder readerEndpoint​(Endpoint readerEndpoint)

        The endpoint of the replica nodes in this node group (shard).

        Parameters:
        readerEndpoint - The endpoint of the replica nodes in this node group (shard).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • slots

        NodeGroup.Builder slots​(String slots)

        The keyspace for this node group (shard).

        Parameters:
        slots - The keyspace for this node group (shard).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • nodeGroupMembers

        NodeGroup.Builder nodeGroupMembers​(Collection<NodeGroupMember> nodeGroupMembers)

        A list containing information about individual nodes within the node group (shard).

        Parameters:
        nodeGroupMembers - A list containing information about individual nodes within the node group (shard).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • nodeGroupMembers

        NodeGroup.Builder nodeGroupMembers​(NodeGroupMember... nodeGroupMembers)

        A list containing information about individual nodes within the node group (shard).

        Parameters:
        nodeGroupMembers - A list containing information about individual nodes within the node group (shard).
        Returns:
        Returns a reference to this object so that method calls can be chained together.