Class EntityLocation
Response to a GetEntityLocation query.
Inherited Members
Namespace: Akka.Cluster.Sharding
Assembly: Akka.Cluster.Sharding.dll
Syntax
public sealed class EntityLocation
  Remarks
In the event that no ShardId can be extracted for the given EntityId, we will return Empty and AllSystems for the shard and shard region respectively.
Constructors
| Edit this page View SourceEntityLocation(string, string, Address, Option<IActorRef>)
Declaration
public EntityLocation(string entityId, string shardId, Address shardRegion, Option<IActorRef> entityRef)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | entityId | |
| string | shardId | |
| Address | shardRegion | |
| Option<IActorRef> | entityRef | 
Properties
| Edit this page View SourceEntityId
The Id of the entity.
Declaration
public string EntityId { get; }
  Property Value
| Type | Description | 
|---|---|
| string | 
EntityRef
Optional - a reference to this entity actor, if it's alive.
Declaration
public Option<IActorRef> EntityRef { get; }
  Property Value
| Type | Description | 
|---|---|
| Option<IActorRef> | 
ShardId
The shard Id that would host this entity.
Declaration
public string ShardId { get; }
  Property Value
| Type | Description | 
|---|---|
| string | 
ShardRegion
The ShardRegion in the cluster that would host this particular entity.
Declaration
public Address ShardRegion { get; }
  Property Value
| Type | Description | 
|---|---|
| Address | 
Edit this page