C# Class Akka.Routing.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. For concurrent calls, round robin is just a best effort.
Inheritance: RoutingLogic
Show file Open project: rogeralsing/akka.net Class Usage Examples

Public Methods

Method Description
RoundRobinRoutingLogic ( ) : System.Collections.Generic

Initializes a new instance of the RoundRobinRoutingLogic class.

RoundRobinRoutingLogic ( int next ) : System.Collections.Generic

Initializes a new instance of the RoundRobinRoutingLogic class.

Select ( object message, Routee routees ) : Routee

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

Method Details

RoundRobinRoutingLogic() public method

Initializes a new instance of the RoundRobinRoutingLogic class.
public RoundRobinRoutingLogic ( ) : System.Collections.Generic
return System.Collections.Generic

RoundRobinRoutingLogic() public method

Initializes a new instance of the RoundRobinRoutingLogic class.
public RoundRobinRoutingLogic ( int next ) : System.Collections.Generic
next int The index to use when starting the selection process. Note that it will start at (next + 1).
return System.Collections.Generic

Select() public method

Picks the next Routee in the collection to receive the message.
public Select ( object message, Routee routees ) : Routee
message object The message that is being routed.
routees Routee A collection of routees to choose from when receiving the .
return Routee