Search Results for

    Show / Hide Table of Contents

    Class EntityLocation

    Response to a GetEntityLocation query.

    Inheritance
    object
    EntityLocation
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    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 Source

    EntityLocation(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 Source

    EntityId

    The Id of the entity.

    Declaration
    public string EntityId { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    EntityRef

    Optional - a reference to this entity actor, if it's alive.

    Declaration
    public Option<IActorRef> EntityRef { get; }
    Property Value
    Type Description
    Option<IActorRef>
    | Edit this page View Source

    ShardId

    The shard Id that would host this entity.

    Declaration
    public string ShardId { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    ShardRegion

    The ShardRegion in the cluster that would host this particular entity.

    Declaration
    public Address ShardRegion { get; }
    Property Value
    Type Description
    Address

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET