Interface ExternalShardAllocationClient
public interface ExternalShardAllocationClient
API May Change
Not for user extension
-
Method Summary
Modifier and TypeMethodDescriptionGet all the current shard locations that have been set via setShardLocationsetShardLocation(String shard, Address location) Update the given shard's location.setShardLocations(Map<String, Address> locations) Update all of the provided ShardLocations.
-
Method Details
-
getShardLocations
CompletionStage<ShardLocations> getShardLocations()Get all the current shard locations that have been set via setShardLocation -
setShardLocation
Update the given shard's location. Thepekko.actor.Addressshould match one of the nodes in the cluster. If the node has not joined the cluster yet it will be moved to that node after the first cluster sharding rebalance.- Parameters:
shard- The shard identifierlocation- Location (Pekko node) to allocate the shard to- Returns:
- Conformation that the update has been written to the local node
-
setShardLocations
Update all of the provided ShardLocations. Thepekko.actor.Addressshould match one of the nodes in the cluster. If the node has not joined the cluster yet it will be moved to that node after the first cluster sharding rebalance it does.- Parameters:
locations- to update- Returns:
- Confirmation that the update has been written to the local node
-