Search Results for

    Show / Hide Table of Contents

    Interface IStartableAllocationStrategy

    Shard allocation strategy where start is called by the shard coordinator before any calls to rebalance or allocate shard. This can be used if there is any expensive initialization to be done that you do not want to to in the constructor as it will happen on every node rather than just the node that hosts the ShardCoordinator

    Inherited Members
    IShardAllocationStrategy.AllocateShard(IActorRef, string, IImmutableDictionary<IActorRef, IImmutableList<string>>)
    IShardAllocationStrategy.Rebalance(IImmutableDictionary<IActorRef, IImmutableList<string>>, IImmutableSet<string>)
    Namespace: Akka.Cluster.Sharding
    Assembly: Akka.Cluster.Sharding.dll
    Syntax
    public interface IStartableAllocationStrategy : IShardAllocationStrategy, INoSerializationVerificationNeeded

    Methods

    | Edit this page View Source

    Start()

    Called before any calls to allocate/rebalance. Do not block. If asynchronous actions are required they can be started here and delay the Futures returned by allocate/rebalance.

    Declaration
    void Start()

    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