Search Results for

    Show / Hide Table of Contents

    Class FromConfig

    Router configuration which has no default, i.e. external configuration is required. This can be used when the dispatcher to be used for the head Router needs to be configured

    Inheritance
    object
    RouterConfig
    Pool
    FromConfig
    Implements
    ISurrogated
    IEquatable<RouterConfig>
    IEquatable<Pool>
    Inherited Members
    Pool.NrOfInstances
    Pool.UsePoolDispatcher
    Pool.Resizer
    Pool.SupervisorStrategy
    Pool.Props(Props)
    Pool.StopRouterWhenAllRouteesRemoved
    Pool.DefaultSupervisorStrategy
    Pool.Equals(Pool)
    Pool.Equals(object)
    Pool.GetHashCode()
    RouterConfig.RouterDispatcher
    RouterConfig.RoutingLogicController(RoutingLogic)
    RouterConfig.IsManagementMessage(object)
    RouterConfig.WithFallback(RouterConfig)
    RouterConfig.Equals(RouterConfig)
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Routing
    Assembly: Akka.dll
    Syntax
    public class FromConfig : Pool, ISurrogated, IEquatable<RouterConfig>, IEquatable<Pool>

    Constructors

    | Edit this page View Source

    FromConfig()

    Initializes a new instance of the FromConfig class.

    Declaration
    public FromConfig()
    | Edit this page View Source

    FromConfig(Resizer, SupervisorStrategy, string)

    Initializes a new instance of the FromConfig class.

    Declaration
    public FromConfig(Resizer resizer, SupervisorStrategy supervisorStrategy, string routerDispatcher)
    Parameters
    Type Name Description
    Resizer resizer

    TBD

    SupervisorStrategy supervisorStrategy

    TBD

    string routerDispatcher

    TBD

    Properties

    | Edit this page View Source

    Instance

    Retrieves a RouterConfig based on what's stored in the configuration.

    note

    This router is set to use the default dispatcher DefaultDispatcherId.

    Declaration
    public static FromConfig Instance { get; }
    Property Value
    Type Description
    FromConfig

    Methods

    | Edit this page View Source

    CreateRouter(ActorSystem)

    N/A

    Declaration
    public override Router CreateRouter(ActorSystem system)
    Parameters
    Type Name Description
    ActorSystem system

    N/A

    Returns
    Type Description
    Router

    N/A

    Overrides
    RouterConfig.CreateRouter(ActorSystem)
    Exceptions
    Type Condition
    NotSupportedException

    This exception is automatically thrown since FromConfig cannot create routers.

    | Edit this page View Source

    CreateRouterActor()

    N/A

    Declaration
    public override ActorBase CreateRouterActor()
    Returns
    Type Description
    ActorBase

    N/A

    Overrides
    Pool.CreateRouterActor()
    Exceptions
    Type Condition
    NotSupportedException

    This exception is automatically thrown since FromConfig cannot create router actors.

    | Edit this page View Source

    GetNrOfInstances(ActorSystem)

    TBD

    Declaration
    public override int GetNrOfInstances(ActorSystem sys)
    Parameters
    Type Name Description
    ActorSystem sys

    TBD

    Returns
    Type Description
    int

    TBD

    Overrides
    Pool.GetNrOfInstances(ActorSystem)
    | Edit this page View Source

    Props()

    Enriches a Props with what what's stored in the router configuration.

    Declaration
    public Props Props()
    Returns
    Type Description
    Props

    TBD

    | Edit this page View Source

    ToSurrogate(ActorSystem)

    Creates a surrogate representation of the current FromConfig.

    Declaration
    public override ISurrogate ToSurrogate(ActorSystem system)
    Parameters
    Type Name Description
    ActorSystem system

    The actor system that owns this router.

    Returns
    Type Description
    ISurrogate

    The surrogate representation of the current FromConfig.

    Overrides
    RouterConfig.ToSurrogate(ActorSystem)
    | Edit this page View Source

    VerifyConfig(ActorPath)

    N/A

    Declaration
    public override void VerifyConfig(ActorPath path)
    Parameters
    Type Name Description
    ActorPath path

    N/A

    Overrides
    RouterConfig.VerifyConfig(ActorPath)
    Exceptions
    Type Condition
    ConfigurationException

    This exception is automatically thrown since 'akka.actor.dispatch' is missing router configuration for path.

    | Edit this page View Source

    WithDispatcher(string)

    Setting the dispatcher to be used for the router head actor, which handles supervision, death watch and router management messages.

    Declaration
    public FromConfig WithDispatcher(string dispatcherId)
    Parameters
    Type Name Description
    string dispatcherId

    TBD

    Returns
    Type Description
    FromConfig

    TBD

    | Edit this page View Source

    WithResizer(Resizer)

    Setting the resizer to be used.

    Declaration
    public FromConfig WithResizer(Resizer resizer)
    Parameters
    Type Name Description
    Resizer resizer

    TBD

    Returns
    Type Description
    FromConfig

    TBD

    | Edit this page View Source

    WithSupervisorStrategy(SupervisorStrategy)

    Setting the supervisor strategy to be used for the "head" Router actor

    Declaration
    public FromConfig WithSupervisorStrategy(SupervisorStrategy strategy)
    Parameters
    Type Name Description
    SupervisorStrategy strategy

    TBD

    Returns
    Type Description
    FromConfig

    TBD

    Implements

    ISurrogated
    IEquatable<T>
    IEquatable<T>

    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