DefaultResizer Members

The DefaultResizer type exposes the following members.

Methods


  Name Description
Public method Backoff
Computes a proposed negative (or zero) capacity delta using the configured `backoffThreshold` and `backoffRate`
Public method Capacity
Returns the overall desired change in resizer capacity. Positive value will add routees to the resizer. Negative value will remove routees from the resizer
Public method Equals(System.Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public method Filter
This method can be used to smooth the capacity delta by considering the current pressure and current capacity.
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method Static member FromConfig
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method IsTimeForResize
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method Pressure
Number of routees considered busy, or above 'pressure level'. Implementation depends on the value of `pressureThreshold` (default is 1).
  • 0: number of routees currently processing a message.
  • 1: number of routees currently processing a message has some messages in mailbox.
  • > 1: number of routees with at least the configured `pressureThreshold` messages in their mailbox. Note that estimating mailbox size of default UnboundedMailbox is O(N) operation.
Public method Rampup
Computes a proposed positive (or zero) capacity delta using the configured `rampupRate`.
Public method Resize
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)

Fields


  Name Description
Public field LowerBound
The fewest number of routees the router should ever have.
Public field UpperBound
The most number of routees the router should ever have. Must be greater than or equal to `lowerBound`.