Click or drag to resize
Akka.NETSmallestMailboxRoutingLogic Class
This class contains logic used by a Router to route a message to a Routee determined using smallest-mailbox. This process has the router select a routee based on the fewest number of messages in its routees' mailbox. The selection is done in the following order:
  • Pick any routee with an empty mailbox.
  • Pick a routee with the fewest pending messages in its mailbox.
  • Pick any remaining routees.
Note Note
Remote routees are consider lowest priority, since their mailbox size is unknown.
Note Note
For the case, when all routees are of unpredictable size, the selection process fails back to round-robin.
Inheritance Hierarchy
SystemObject
  Akka.RoutingRoutingLogic
    Akka.RoutingSmallestMailboxRoutingLogic

Namespace:  Akka.Routing
Assembly:  Akka (in Akka.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public sealed class SmallestMailboxRoutingLogic : RoutingLogic

The SmallestMailboxRoutingLogic type exposes the following members.

Constructors
  NameDescription
Public methodSmallestMailboxRoutingLogic
Initializes a new instance of the SmallestMailboxRoutingLogic class.
Public methodSmallestMailboxRoutingLogic(Int32)
Initializes a new instance of the SmallestMailboxRoutingLogic class.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSelect
Picks a Routee to receive the message.
(Overrides RoutingLogicSelect(Object, Routee).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
See Also