Interface Shard.Builder

    • Method Detail

      • name

        Shard.Builder name​(String name)

        The name of the shard

        Parameters:
        name - The name of the shard
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • status

        Shard.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.
      • slots

        Shard.Builder slots​(String slots)

        The keyspace for this shard.

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

        Shard.Builder nodes​(Collection<Node> nodes)

        A list containing information about individual nodes within the shard

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

        Shard.Builder nodes​(Node... nodes)

        A list containing information about individual nodes within the shard

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

        Shard.Builder nodes​(Consumer<Node.Builder>... nodes)

        A list containing information about individual nodes within the shard

        This is a convenience method that creates an instance of the Node.Builder avoiding the need to create one manually via Node.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #nodes(List).

        Parameters:
        nodes - a consumer that will call methods on Node.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #nodes(java.util.Collection)
      • numberOfNodes

        Shard.Builder numberOfNodes​(Integer numberOfNodes)

        The number of nodes in the shard

        Parameters:
        numberOfNodes - The number of nodes in the shard
        Returns:
        Returns a reference to this object so that method calls can be chained together.