Decide if the capacity of the router need to be changed. Will be invoked when `isTimeForResize`
returns true and no other resize is in progress.
Return the number of routees to add or remove. Negative value will remove that number of routees.
Positive value will add that number of routess. 0 will not change the routees.
This method is invoked only in the context of the Router actor.
Namespace: Akka.RoutingAssembly: Akka (in Akka.dll) Version: 0.8.0.0 (0.8.0.0)
Syntaxpublic abstract int Resize(
IEnumerable<Routee> currentRoutees
)
Public MustOverride Function Resize (
currentRoutees As IEnumerable(Of Routee)
) As Integer
public:
virtual int Resize(
IEnumerable<Routee^>^ currentRoutees
) abstract
abstract Resize :
currentRoutees : IEnumerable<Routee> -> int
Parameters
- currentRoutees
- Type: System.Collections.GenericIEnumerableRoutee
[Missing <param name="currentRoutees"/> documentation for "M:Akka.Routing.Resizer.Resize(System.Collections.Generic.IEnumerable{Akka.Routing.Routee})"]
Return Value
Type:
Int32[Missing <returns> documentation for "M:Akka.Routing.Resizer.Resize(System.Collections.Generic.IEnumerable{Akka.Routing.Routee})"]
See Also