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.
Implements
Inherited Members
Namespace: Akka.Routing
Assembly: Akka.dll
Syntax
public sealed class RoundRobinRoutingLogic : RoutingLogic, INoSerializationVerificationNeeded
Constructors
| Improve this Doc View SourceRoundRobinRoutingLogic()
Initializes a new instance of the RoundRobinRoutingLogic class.
Declaration
public RoundRobinRoutingLogic()
RoundRobinRoutingLogic(Int32)
Initializes a new instance of the RoundRobinRoutingLogic class.
Declaration
public RoundRobinRoutingLogic(int next)
Parameters
Type | Name | Description |
---|---|---|
Int32 | next | The index to use when starting the selection process. Note that it will start at (next + 1). |
Methods
| Improve this Doc View SourceSelect(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 |
Returns
Type | Description |
---|---|
Routee | A Routee that is receives the |