ExternalShardAllocationClient

API May Change

Not for user extension

class Object
trait Matchable
class Any

Value members

Abstract methods

def getShardLocations(): CompletionStage[ShardLocations]

Get all the current shard locations that have been set via setShardLocation

Get all the current shard locations that have been set via setShardLocation

def setShardLocation(shard: ShardId, location: Address): CompletionStage[Done]

Update the given shard's location. The Address should 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.

Update the given shard's location. The Address should 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.

Value parameters:
location

Location (akka node) to allocate the shard to

shard

The shard identifier

Returns:

Conformation that the update has been written to the local node

def setShardLocations(locations: Map[ShardId, Address]): CompletionStage[Done]

Update all of the provided ShardLocations. The Address should 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.

Update all of the provided ShardLocations. The Address should 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.

Value parameters:
locations

to update

Returns:

Confirmation that the update has been written to the local node