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
| Improve this Doc 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
| Improve this Doc 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 |