C# Class Akka.Routing.RoundRobinGroup

This class represents a Group router that sends messages 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. The configuration parameter trumps the constructor arguments. This means that if you provide `paths` during instantiation they will be ignored if the router is defined in the configuration file for the actor being used.
Inheritance: Akka.Routing.Group
Datei anzeigen Open project: rogeralsing/akka.net

Public Methods

Method Description
CreateRouter ( ActorSystem system ) : Router

Creates a router that is responsible for routing messages to routees within the provided system.

RoundRobinGroup ( ) : System.Collections.Generic

Initializes a new instance of the RoundRobinGroup class.

RoundRobinGroup ( Config config ) : System.Collections.Generic

Initializes a new instance of the RoundRobinGroup class.

RoundRobinGroup ( IEnumerable routees ) : System.Collections.Generic

Initializes a new instance of the RoundRobinGroup class.

RoundRobinGroup ( IEnumerable paths ) : System.Collections.Generic

Initializes a new instance of the RoundRobinGroup class.

ToSurrogate ( ActorSystem system ) : ISurrogate

Creates a surrogate representation of the current RoundRobinGroup.

WithDispatcher ( string dispatcher ) : Akka.Routing.Group

Creates a new RoundRobinGroup router with a given dispatcher id. This method is immutable and returns a new instance of the router.

Method Details

CreateRouter() public method

Creates a router that is responsible for routing messages to routees within the provided system.
public CreateRouter ( ActorSystem system ) : Router
system ActorSystem The actor system that owns this router.
return Router

RoundRobinGroup() public method

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

RoundRobinGroup() public method

Initializes a new instance of the RoundRobinGroup class.
public RoundRobinGroup ( Config config ) : System.Collections.Generic
config Akka.Configuration.Config /// The configuration to use to lookup paths used by the group router. /// /// /// If 'routees.path' is defined in the provided configuration then those paths will be used by the router. /// ///
return System.Collections.Generic

RoundRobinGroup() public method

Initializes a new instance of the RoundRobinGroup class.
public RoundRobinGroup ( IEnumerable routees ) : System.Collections.Generic
routees IEnumerable An enumeration of routees used by the group router.
return System.Collections.Generic

RoundRobinGroup() public method

Initializes a new instance of the RoundRobinGroup class.
public RoundRobinGroup ( IEnumerable paths ) : System.Collections.Generic
paths IEnumerable An enumeration of actor paths used by the group router.
return System.Collections.Generic

ToSurrogate() public method

Creates a surrogate representation of the current RoundRobinGroup.
public ToSurrogate ( ActorSystem system ) : ISurrogate
system ActorSystem The actor system that owns this router.
return ISurrogate

WithDispatcher() public method

Creates a new RoundRobinGroup router with a given dispatcher id. This method is immutable and returns a new instance of the router.
public WithDispatcher ( string dispatcher ) : Akka.Routing.Group
dispatcher string The dispatcher id used to configure the new router.
return Akka.Routing.Group