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
| Improve this Doc View SourceGetEntityLocation(String, TimeSpan)
Declaration
public GetEntityLocation(string entityId, TimeSpan timeout)
Parameters
Type | Name | Description |
---|---|---|
String | entityId | |
TimeSpan | timeout |
Properties
| Improve this Doc 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 |