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

A router group 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.Group
Показать файл Открыть проект

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

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

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

TailChoppingGroup ( Config config ) : System

Initializes a new instance of the TailChoppingGroup class.

TailChoppingGroup ( string routeePaths, System.TimeSpan within, System.TimeSpan interval ) : System

Initializes a new instance of the TailChoppingGroup class.

ToSurrogate ( ActorSystem system ) : ISurrogate

Creates a surrogate representation of the current TailChoppingGroup.

WithDispatcher ( string dispatcher ) : Akka.Routing.Group

Creates a new TailChoppingGroup router with a given dispatcher id. 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

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

Initializes a new instance of the TailChoppingGroup class.
public TailChoppingGroup ( Config config ) : System
config Akka.Configuration.Config /// The configuration to use to lookup paths used by the group router. /// /// /// If 'routees.path' is defined in the provided configuration then those paths will be used by the router. /// If 'within' is defined in the provided configuration then that will be used as the timeout. /// If 'tail-chopping-router.interval' is defined in the provided configuration then that will be used as the interval. /// ///
Результат System

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

Initializes a new instance of the TailChoppingGroup class.
public TailChoppingGroup ( string routeePaths, System.TimeSpan within, System.TimeSpan interval ) : System
routeePaths string The actor paths used by this router during routee selection.
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 TailChoppingGroup.
public ToSurrogate ( ActorSystem system ) : ISurrogate
system ActorSystem The actor system that owns this router.
Результат ISurrogate

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

Creates a new TailChoppingGroup router with a given dispatcher id. This method is immutable and returns a new instance of the router.
public WithDispatcher ( string dispatcher ) : Akka.Routing.Group
dispatcher string The dispatcher id used to configure the new router.
Результат Akka.Routing.Group