[This is preliminary documentation and is subject to change.]
The SlidingWindowThrottle type exposes the following members.Constructors
Name | Description | |
---|---|---|
![]() | SlidingWindowThrottle | Initializes a new instance of the SlidingWindowThrottle class |
![]() | SlidingWindowThrottle(String, Int32, Int32, Int32, String) |
Constructor
|
Methods
Name | Description | |
---|---|---|
![]() | __setComponentDirector | (Inherited from ApplicationComponent.) |
![]() | __setThrottling | (Inherited from Throttle.) |
![]() | Configure | (Inherited from Throttle.) |
![]() | Destructor | (Overrides Throttle Destructor .) |
![]() | Dispose |
Deterministically disposes object. DO NOT OVERRIDE this method, override Destructor() instead
(Inherited from DisposableObject.) |
![]() | DoConfigure | (Overrides Throttle DoConfigure(IConfigSectionNode).) |
![]() | EnsureObjectNotDisposed |
Checks to see whether object dispose started or has already been disposed and throws an exception if Dispose() was called
(Inherited from DisposableObject.) |
![]() | ![]() | Determines whether the specified object is equal to the current object. (Inherited from ![]() |
![]() | Finalize | (Inherited from DisposableObject.) |
![]() | ![]() | Serves as the default hash function. (Inherited from ![]() |
![]() | ![]() | Gets the (Inherited from ![]() ![]() |
![]() | ![]() | Creates a shallow copy of the current (Inherited from ![]() ![]() |
![]() | Register |
Register this instance with throttling container
(Inherited from Throttle.) |
![]() | Reset |
Reset the internal state of the throttling strategy
(Overrides Throttle Reset .) |
![]() | ![]() | Returns a string that represents the current object. (Inherited from ![]() |
![]() | ToString(DateTime) |
Dump the internal state to string
|
![]() | Try |
Checks whether the current throttle rate limit has not been reached
per one unit of measurement. This method is usually used to throttle based
on pass count
(Inherited from Throttle.) |
![]() | Try(Double) |
Checks whether the current throttle rate limit has not been reached
for the provided value. This method is usually used to throttle based
on values like financial amounts, data volumes, user counts, etc.
(Inherited from Throttle.) |
![]() | Try(DateTime, Double) |
Add value to the bucket associated with time
(Overrides Throttle Try(DateTime, Double).) |
![]() | Unregister |
Unregister this instance from throttling container
(Inherited from Throttle.) |
Extension Methods
Properties
Name | Description | |
---|---|---|
![]() | Avg |
Return current running average over the throttling interval
|
![]() | BucketsPerSec |
Number of measurement buckets per second. The greater the number
the more accurate throttle rate is calculated and the slower the
calculation gets
|
![]() | ComponentCommonName |
Returns the common name used to identify the component, for example "Glue" for various IGlue implementations.
This name is searched-by some management tools that allow to find component by this name that does not change between
application restarts like ComponentSID does. Subordinate (non-root) components return null
(Inherited from ApplicationComponent.) |
![]() | ComponentDirector |
Returns a reference to an object that this app component services/operates under, or null
(Inherited from ApplicationComponent.) |
![]() | ComponentSID |
Returns process/instance unique app component system id
(Inherited from ApplicationComponent.) |
![]() | ComponentStartTime |
Returns local computer time of component start (not from application container time)
(Inherited from ApplicationComponent.) |
![]() | Disposed |
Indicates whether this object was already disposed - the Dispose() has finished
(Inherited from DisposableObject.) |
![]() | DisposeStarted |
Indicates whether this object Dispose() has been called and dispose started but not finished yet
(Inherited from DisposableObject.) |
![]() | Interval |
Return throttling interval in seconds
|
![]() | Limit |
Return throttle limit over Interval
|
![]() | Name |
Returns the unique name of this instance
(Inherited from Throttle.) |
![]() | Sum |
Return current running sum over the throttling interval
|
![]() | Throttling |
References the Throttling that this instance is registered with
(Inherited from Throttle.) |
![]() | Unit |
Returns the name of unit of measurement for this instance
(Inherited from Throttle.) |
See Also