C# Class Akka.Routing.ScatterGatherFirstCompletedPool

Class RoundRobinPool.
Inheritance: Akka.Routing.Pool
ファイルを表示 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.

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 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

ScatterGatherFirstCompletedPool() public method

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. /// ///
return System

ScatterGatherFirstCompletedPool() public method

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.
return System

ScatterGatherFirstCompletedPool() public method

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.
return System

ScatterGatherFirstCompletedPool() public method

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.
return System

ToSurrogate() public method

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

WithDispatcher() public method

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.
return Pool

WithFallback() public method

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.
return RouterConfig

WithResizer() public method

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.
return Pool

WithSupervisorStrategy() public method

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.
return Pool