C# Class Akka.Routing.RandomPool

Inheritance: Akka.Routing.Pool
Afficher le fichier Open project: rogeralsing/akka.net

Méthodes publiques

Méthode Description
CreateRouter ( ActorSystem system ) : Router

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

RandomPool ( Config config ) : System.Collections.Generic

Initializes a new instance of the RandomPool class.

RandomPool ( int nrOfInstances ) : System.Collections.Generic

Initializes a new instance of the RandomPool class. A RandomPool configured in this way uses the Pool.DefaultStrategy supervisor strategy.

RandomPool ( int nrOfInstances, Akka.Routing.Resizer resizer ) : System.Collections.Generic

Initializes a new instance of the RandomPool class. A RandomPool configured in this way uses the Pool.DefaultStrategy supervisor strategy.

RandomPool ( int nrOfInstances, Akka.Routing.Resizer resizer, Akka.Actor.SupervisorStrategy supervisorStrategy, string routerDispatcher, bool usePoolDispatcher = false ) : System.Collections.Generic

Initializes a new instance of the RandomPool class.

ToSurrogate ( ActorSystem system ) : ISurrogate

Creates a surrogate representation of the current RandomPool.

WithDispatcher ( string dispatcher ) : Akka.Routing.Pool

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

WithFallback ( Akka.Routing.RouterConfig routerConfig ) : Akka.Routing.RouterConfig

Configure the current router with an auxiliary router for routes that it does not know how to handle.

WithResizer ( Akka.Routing.Resizer resizer ) : Akka.Routing.Pool

Creates a new RandomPool router with a given Resizer. This method is immutable and returns a new instance of the router.

WithSupervisorStrategy ( Akka.Actor.SupervisorStrategy strategy ) : Akka.Routing.Pool

Creates a new RandomPool router with a given SupervisorStrategy. This method is immutable and returns a new instance of the router.

Method Details

CreateRouter() public méthode

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.
Résultat Router

RandomPool() public méthode

Initializes a new instance of the RandomPool class.
public RandomPool ( Config config ) : System.Collections.Generic
config Akka.Configuration.Config The configuration used to configure the pool.
Résultat System.Collections.Generic

RandomPool() public méthode

Initializes a new instance of the RandomPool class. A RandomPool configured in this way uses the Pool.DefaultStrategy supervisor strategy.
public RandomPool ( int nrOfInstances ) : System.Collections.Generic
nrOfInstances int The initial number of routees in the pool.
Résultat System.Collections.Generic

RandomPool() public méthode

Initializes a new instance of the RandomPool class. A RandomPool configured in this way uses the Pool.DefaultStrategy supervisor strategy.
public RandomPool ( int nrOfInstances, Akka.Routing.Resizer resizer ) : System.Collections.Generic
nrOfInstances int The initial number of routees in the pool.
resizer Akka.Routing.Resizer The resizer to use when dynamically allocating routees to the pool.
Résultat System.Collections.Generic

RandomPool() public méthode

Initializes a new instance of the RandomPool class.
public RandomPool ( int nrOfInstances, Akka.Routing.Resizer resizer, Akka.Actor.SupervisorStrategy supervisorStrategy, string routerDispatcher, bool usePoolDispatcher = false ) : System.Collections.Generic
nrOfInstances int The initial number of routees in the pool.
resizer Akka.Routing.Resizer The resizer to use when dynamically allocating routees to the pool.
supervisorStrategy Akka.Actor.SupervisorStrategy The strategy to use when supervising the pool.
routerDispatcher string The dispatcher to use when passing messages to the routees.
usePoolDispatcher bool true to use the pool dispatcher; otherwise false.
Résultat System.Collections.Generic

ToSurrogate() public méthode

Creates a surrogate representation of the current RandomPool.
public ToSurrogate ( ActorSystem system ) : ISurrogate
system ActorSystem The actor system that owns this router.
Résultat ISurrogate

WithDispatcher() public méthode

Creates a new RandomPool router with a given dispatcher id. This method is immutable and returns a new instance of the router.
public WithDispatcher ( string dispatcher ) : Akka.Routing.Pool
dispatcher string The dispatcher id used to configure the new router.
Résultat Akka.Routing.Pool

WithFallback() public méthode

Configure the current router with an auxiliary router for routes that it does not know how to handle.
public WithFallback ( Akka.Routing.RouterConfig routerConfig ) : Akka.Routing.RouterConfig
routerConfig Akka.Routing.RouterConfig The router to use as an auxiliary source.
Résultat Akka.Routing.RouterConfig

WithResizer() public méthode

Creates a new RandomPool router with a given Resizer. This method is immutable and returns a new instance of the router.
public WithResizer ( Akka.Routing.Resizer resizer ) : Akka.Routing.Pool
resizer Akka.Routing.Resizer The used to configure the new router.
Résultat Akka.Routing.Pool

WithSupervisorStrategy() public méthode

Creates a new RandomPool router with a given SupervisorStrategy. This method is immutable and returns a new instance of the router.
public WithSupervisorStrategy ( Akka.Actor.SupervisorStrategy strategy ) : Akka.Routing.Pool
strategy Akka.Actor.SupervisorStrategy The used to configure the new router.
Résultat Akka.Routing.Pool