Class GetEntityLocation
Send this message to a ShardRegion actor to determine the location and liveness of a specific entity actor in the region.
Creates a EntityLocation message in response.
Implements
Inherited Members
Namespace: Akka.Cluster.Sharding
Assembly: Akka.Cluster.Sharding.dll
Syntax
public sealed class GetEntityLocation : IShardRegionQuery
Remarks
This is used primarily for testing and telemetry purposes.
In order for this query to work, the Akka.Cluster.Sharding.MessageExtractor must support ShardRegion.StartEntity, which is also used when remember-entities=on.
Constructors
| Edit this page View SourceGetEntityLocation(string, TimeSpan)
Declaration
public GetEntityLocation(string entityId, TimeSpan timeout)
Parameters
Type | Name | Description |
---|---|---|
string | entityId | |
TimeSpan | timeout |
Properties
| Edit this page View SourceEntityId
The id of the entity we're searching for.
Declaration
public string EntityId { get; }
Property Value
Type | Description |
---|---|
string |
Timeout
Used to timeout the Ask{T} operation used to identify whether or not this entity actor currently exists.
Declaration
public TimeSpan Timeout { get; }
Property Value
Type | Description |
---|---|
TimeSpan |