C# Класс Akka.Routing.ScatterGatherFirstCompletedPool

Class RoundRobinPool.
Наследование: Akka.Routing.Pool
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

CreateRouter() публичный Метод

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.
Результат Router

ScatterGatherFirstCompletedPool() публичный Метод

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. /// ///
Результат System

ScatterGatherFirstCompletedPool() публичный Метод

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.
Результат System

ScatterGatherFirstCompletedPool() публичный Метод

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.
Результат System

ScatterGatherFirstCompletedPool() публичный Метод

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.
Результат System

ToSurrogate() публичный Метод

Creeates a surrogate representation of the current ScatterGatherFirstCompletedPool.
public ToSurrogate ( ActorSystem system ) : ISurrogate
system ActorSystem The actor system that owns this router.
Результат ISurrogate

WithDispatcher() публичный Метод

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.
Результат Pool

WithFallback() публичный Метод

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.
Результат RouterConfig

WithResizer() публичный Метод

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.
Результат Pool

WithSupervisorStrategy() публичный Метод

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.
Результат Pool