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

A router pool that selects a random routee, then waits an interval before sending to a different routee. The first response is used and the remaining discarded.
Наследование: Akka.Routing.Pool
Показать файл Открыть проект

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

Метод Описание
CreateRouter ( ActorSystem system ) : Router

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

TailChoppingPool ( Config config ) : System

Initializes a new instance of the TailChoppingPool class. 'nr-of-instances', 'within', and 'tail-chopping-router.interval' must be defined in the provided configuration.

TailChoppingPool ( int nrOfInstances, Akka.Routing.Resizer resizer, Akka.Actor.SupervisorStrategy supervisorStrategy, string routerDispatcher, System.TimeSpan within, System.TimeSpan interval, bool usePoolDispatcher = false ) : System

Initializes a new instance of the TailChoppingPool class.

TailChoppingPool ( int nrOfInstances, System.TimeSpan within, System.TimeSpan interval ) : System

Initializes a new instance of the TailChoppingPool class.

ToSurrogate ( ActorSystem system ) : ISurrogate

Creates a surrogate representation of the current TailChoppingPool.

WithDispatcher ( string dispatcher ) : Akka.Routing.Pool

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

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

Initializes a new instance of the TailChoppingPool class. 'nr-of-instances', 'within', and 'tail-chopping-router.interval' must be defined in the provided configuration.
public TailChoppingPool ( Config config ) : System
config Akka.Configuration.Config The configuration used to configure the pool.
Результат System

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

Initializes a new instance of the TailChoppingPool class.
public TailChoppingPool ( int nrOfInstances, Akka.Routing.Resizer resizer, Akka.Actor.SupervisorStrategy supervisorStrategy, string routerDispatcher, System.TimeSpan within, System.TimeSpan interval, bool usePoolDispatcher = false ) : System
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.
within System.TimeSpan The amount of time to wait for a response.
interval System.TimeSpan The interval to wait before sending to the next routee.
usePoolDispatcher bool true to use the pool dispatcher; otherwise false.
Результат System

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

Initializes a new instance of the TailChoppingPool class.
public TailChoppingPool ( int nrOfInstances, System.TimeSpan within, System.TimeSpan interval ) : System
nrOfInstances int The initial number of routees in the pool.
within System.TimeSpan The amount of time to wait for a response.
interval System.TimeSpan The interval to wait before sending to the next routee.
Результат System

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

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

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

Creates a new TailChoppingPool 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.
Результат Akka.Routing.Pool

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

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

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

Creates a new TailChoppingPool 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.
Результат Akka.Routing.Pool

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

Creates a new TailChoppingPool 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.
Результат Akka.Routing.Pool