C# 클래스 Akka.Routing.SmallestMailboxPool

This class represents a Pool router that sends messages to a Routee determined using smallest-mailbox. Please refer to SmallestMailboxRoutingLogic for more information on the selection process.
상속: Akka.Routing.Pool
파일 보기 프로젝트 열기: rogeralsing/akka.net

공개 메소드들

메소드 설명
CreateRouter ( ActorSystem system ) : Router

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

SmallestMailboxPool ( Config config ) : System.Threading

Initializes a new instance of the SmallestMailboxPool class.

SmallestMailboxPool ( int nrOfInstances ) : System.Threading

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

SmallestMailboxPool ( int nrOfInstances, Akka.Routing.Resizer resizer, Akka.Actor.SupervisorStrategy supervisorStrategy, string routerDispatcher, bool usePoolDispatcher = false ) : System.Threading

Initializes a new instance of the SmallestMailboxPool class.

ToSurrogate ( ActorSystem system ) : ISurrogate

Creates a surrogate representation of the current SmallestMailboxPool.

WithDispatcher ( string dispatcher ) : Akka.Routing.Pool

Creates a new SmallestMailboxPool 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 SmallestMailboxPool router with a given Routing.Resizer. This method is immutable and returns a new instance of the router.

WithSupervisorStrategy ( Akka.Actor.SupervisorStrategy strategy ) : Akka.Routing.Pool

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

SmallestMailboxPool() 공개 메소드

Initializes a new instance of the SmallestMailboxPool class.
public SmallestMailboxPool ( Config config ) : System.Threading
config Akka.Configuration.Config The configuration used to configure the pool.
리턴 System.Threading

SmallestMailboxPool() 공개 메소드

Initializes a new instance of the SmallestMailboxPool class. A SmallestMailboxPool configured in this way uses the Pool.DefaultStrategy supervisor strategy.
public SmallestMailboxPool ( int nrOfInstances ) : System.Threading
nrOfInstances int The initial number of routees in the pool.
리턴 System.Threading

SmallestMailboxPool() 공개 메소드

Initializes a new instance of the SmallestMailboxPool class.
public SmallestMailboxPool ( int nrOfInstances, Akka.Routing.Resizer resizer, Akka.Actor.SupervisorStrategy supervisorStrategy, string routerDispatcher, bool usePoolDispatcher = false ) : System.Threading
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.
usePoolDispatcher bool true to use the pool dispatcher; otherwise false.
리턴 System.Threading

ToSurrogate() 공개 메소드

Creates a surrogate representation of the current SmallestMailboxPool.
public ToSurrogate ( ActorSystem system ) : ISurrogate
system ActorSystem The actor system that owns this router.
리턴 ISurrogate

WithDispatcher() 공개 메소드

Creates a new SmallestMailboxPool 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 SmallestMailboxPool router with a given Routing.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 SmallestMailboxPool 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