Skip to content

ThrottleStats Constructors ​

Definition ​

  • Namespace: JASE
  • Assembly: JASE.Concurrency.dll

ThrottleStats(int MaxRequests, TimeSpan Window, int ActiveCount, int AvailableSlots, bool IsAtCapacity, bool IsAdmissionSuspended, TimeSpan? NextSlotIn, int PendingWaiters, long TotalAdmissions, long TotalAdmissionWaits, long TotalConfigures, long TotalResets, long TotalDrainOperations) ​

csharp
ThrottleStats(int MaxRequests, TimeSpan Window, int ActiveCount, int AvailableSlots, bool IsAtCapacity, bool IsAdmissionSuspended, TimeSpan? NextSlotIn, int PendingWaiters, long TotalAdmissions, long TotalAdmissionWaits, long TotalConfigures, long TotalResets, long TotalDrainOperations)

Point-in-time and cumulative telemetry for a Throttle instance.

Parameters ​

NameDescription
ActiveCountThe number of admissions currently within the active window.
AvailableSlotsThe number of additional admissions allowed before the window is at capacity.
IsAdmissionSuspendedtrue when admissions are paused during configure or drain.
IsAtCapacitytrue when ActiveCount is greater than or equal to MaxRequests.
MaxRequestsThe maximum number of requests allowed within Window.
NextSlotInThe time until the oldest admission expires from the window, or when the window is empty.
PendingWaitersThe number of callers currently blocked waiting for admission.
TotalAdmissionWaitsThe total number of admission wait iterations since the instance was created.
TotalAdmissionsThe total number of successful admissions since the instance was created.
TotalConfiguresThe total number of completed configure operations.
TotalDrainOperationsThe total number of completed drain operations.
TotalResetsThe total number of Reset calls.
WindowThe sliding time window for admitted requests.