C# Class Akka.Routing.ScatterGatherFirstCompletedPool

Class RoundRobinPool.
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.

ScatterGatherFirstCompletedPool ( Config config ) : System

Initializes a new instance of the ScatterGatherFirstCompletedPool class.

ScatterGatherFirstCompletedPool ( int nrOfInstances ) : System

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

ScatterGatherFirstCompletedPool ( int nrOfInstances, Resizer resizer, SupervisorStrategy supervisorStrategy, string routerDispatcher, TimeSpan within, bool usePoolDispatcher = false ) : System

Initializes a new instance of the ScatterGatherFirstCompletedPool class.

ScatterGatherFirstCompletedPool ( int nrOfInstances, TimeSpan within ) : System

Initializes a new instance of the ScatterGatherFirstCompletedPool class.

ToSurrogate ( ActorSystem system ) : ISurrogate

Creeates a surrogate representation of the current ScatterGatherFirstCompletedPool.

WithDispatcher ( string dispatcher ) : Pool

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

WithFallback ( RouterConfig routerConfig ) : RouterConfig

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

WithResizer ( Resizer resizer ) : Pool

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

WithSupervisorStrategy ( SupervisorStrategy strategy ) : Pool

Creates a new ScatterGatherFirstCompletedPool 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

ScatterGatherFirstCompletedPool() public méthode

Initializes a new instance of the ScatterGatherFirstCompletedPool class.
public ScatterGatherFirstCompletedPool ( Config config ) : System
config Config /// The configuration to use to lookup paths used by the group router. /// /// /// 'within' must be defined in the provided configuration. /// ///
Résultat System

ScatterGatherFirstCompletedPool() public méthode

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

ScatterGatherFirstCompletedPool() public méthode

Initializes a new instance of the ScatterGatherFirstCompletedPool class.
public ScatterGatherFirstCompletedPool ( int nrOfInstances, Resizer resizer, SupervisorStrategy supervisorStrategy, string routerDispatcher, TimeSpan within, bool usePoolDispatcher = false ) : System
nrOfInstances int The initial number of routees in the pool.
resizer Resizer The resizer to use when dynamically allocating routees to the pool.
supervisorStrategy SupervisorStrategy The strategy to use when supervising the pool.
routerDispatcher string The dispatcher to use when passing messages to the routees.
within TimeSpan The amount of time to wait for a response.
usePoolDispatcher bool true to use the pool dispatcher; otherwise false.
Résultat System

ScatterGatherFirstCompletedPool() public méthode

Initializes a new instance of the ScatterGatherFirstCompletedPool class.
public ScatterGatherFirstCompletedPool ( int nrOfInstances, TimeSpan within ) : System
nrOfInstances int The initial number of routees in the pool.
within TimeSpan The amount of time to wait for a response.
Résultat System

ToSurrogate() public méthode

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

WithDispatcher() public méthode

Creates a new ScatterGatherFirstCompletedPool router with a given dispatcher id. This method is immutable and returns a new instance of the router.
public WithDispatcher ( string dispatcher ) : Pool
dispatcher string The dispatcher id used to configure the new router.
Résultat 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 ( RouterConfig routerConfig ) : RouterConfig
routerConfig RouterConfig The router to use as an auxiliary source.
Résultat RouterConfig

WithResizer() public méthode

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

WithSupervisorStrategy() public méthode

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