Class ShardAllocation.Builder
java.lang.Object
com.arpnetworking.commons.builder.OvalBuilder<ShardAllocation>
com.arpnetworking.clusteraggregator.models.ShardAllocation.Builder
- All Implemented Interfaces:
com.arpnetworking.commons.builder.Builder<ShardAllocation>
- Enclosing class:
- ShardAllocation
public static class ShardAllocation.Builder
extends com.arpnetworking.commons.builder.OvalBuilder<ShardAllocation>
Builder
implementation for
ShardAllocation
.- Author:
- Brandon Arp (brandon dot arp at inscopemetrics dot com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetCurrentShards
(Set<String> value) The shards currently on the node.The name of the host.setIncomingShards
(Set<String> value) The shards in the process of being rebalanced to this node.setOutgoingShards
(Set<String> value) The shards in the process of being rebalanced away from this node.setShardRegion
(org.apache.pekko.actor.ActorRef value) The shard region owning the shards.Methods inherited from class com.arpnetworking.commons.builder.OvalBuilder
build, clone, clone, construct, isSelfValidating, toString, validate
-
Constructor Details
-
Builder
public Builder()Public constructor.
-
-
Method Details
-
setCurrentShards
The shards currently on the node. Required. Cannot be null.- Parameters:
value
- The shards.- Returns:
- This instance of
ShardAllocation.Builder
.
-
setOutgoingShards
The shards in the process of being rebalanced away from this node. Required. Cannot be null.- Parameters:
value
- The shards.- Returns:
- This instance of
ShardAllocation.Builder
.
-
setIncomingShards
The shards in the process of being rebalanced to this node. Required. Cannot be null.- Parameters:
value
- The shards.- Returns:
- This instance of
ShardAllocation.Builder
.
-
setShardRegion
The shard region owning the shards. Required. Cannot be null.- Parameters:
value
- The shard region.- Returns:
- This instance of
ShardAllocation.Builder
.
-
setHost
The name of the host. Required. Cannot be null.- Parameters:
value
- The host.- Returns:
- This instance of
ShardAllocation.Builder
.
-