Search Results for

    Show / Hide Table of Contents

    Class RoundRobinRoutingLogic

    This class contains logic used by a Router to route a message to a Routee determined using round-robin. This process has the router select from a list of routees in sequential order. When the list has been exhausted, the router iterates again from the beginning of the list.

    note

    For concurrent calls, round robin is just a best effort.

    Inheritance
    object
    RoutingLogic
    RoundRobinRoutingLogic
    Implements
    INoSerializationVerificationNeeded
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Routing
    Assembly: Akka.dll
    Syntax
    public sealed class RoundRobinRoutingLogic : RoutingLogic, INoSerializationVerificationNeeded

    Constructors

    | Edit this page View Source

    RoundRobinRoutingLogic()

    Initializes a new instance of the RoundRobinRoutingLogic class.

    Declaration
    public RoundRobinRoutingLogic()
    | Edit this page View Source

    RoundRobinRoutingLogic(int)

    Initializes a new instance of the RoundRobinRoutingLogic class.

    Declaration
    public RoundRobinRoutingLogic(int next)
    Parameters
    Type Name Description
    int next

    The index to use when starting the selection process. Note that it will start at (next + 1).

    Methods

    | Edit this page View Source

    Select(object, Routee[])

    Picks the next Routee in the collection to receive the message.

    Declaration
    public override Routee Select(object message, Routee[] routees)
    Parameters
    Type Name Description
    object message

    The message that is being routed.

    Routee[] routees

    A collection of routees to choose from when receiving the message.

    Returns
    Type Description
    Routee

    A Routee that is receives the message.

    Overrides
    RoutingLogic.Select(object, Routee[])

    Implements

    INoSerializationVerificationNeeded

    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