com.ccadllc.cedi.circuitbreaker.statistics.FlowControlStatistics
- a SlidingAggregateMetrics instance which contains a sliding window of the aggregate rate statistics.
- a FlowRateSample instance which contains the current per-second request count and a timestamp indicating the start time of this count (when a second has past, the value is added to the sliding window of values and cleared to begin the next count).
Increments the per-second request rate count.
Increments the per-second request rate count.
newAggregateFlowRate - A new instance of this data type with the per-second count incremented by 1.
Possibly age the current per-second sample, if more than one second has passed since the current per-second sample count started,
by copying the count into the aggregate sliding window and resetting the current sample count to 0 and its start time to the passed-in
time
parameter.
Possibly age the current per-second sample, if more than one second has passed since the current per-second sample count started,
by copying the count into the aggregate sliding window and resetting the current sample count to 0 and its start time to the passed-in
time
parameter. The aggregate sliding window of stats is first filled with zero count samples for the number of seconds over 2
which have occurred since the last time this function was invoked.
- the java.time.Instant
timestamp representing the current time, usually (or at least the relative current time;
not necessarily the current wall clock time).
newAggregateFlowRate - updated with the state updated if sufficient time has passed or else it returns itself.
- a FlowRateSample instance which contains the current per-second request count and a timestamp indicating the start time of this count (when a second has past, the value is added to the sliding window of values and cleared to begin the next count).
Indicates whether we've collected enough per-second request rate samples to completely fill the sliding window of values, indicating we have enough data to derive meaningful statistics.
Indicates whether we've collected enough per-second request rate samples to completely fill the sliding window of values, indicating we have enough data to derive meaningful statistics. For instance, if the sample window for the sliding vector is 30 seconds, this will return true if we've collected over 30 samples.
The mean/average of the per-second rate values in the contained SlidingAggregateMetrics
.
- a SlidingAggregateMetrics instance which contains a sliding window of the aggregate rate statistics.
Renders the aggregate flow rate as a human-readable string value.
Maintains the sliding window per second request rates as well as the current second's request count.
- a SlidingAggregateMetrics instance which contains a sliding window of the aggregate rate statistics.
- a FlowRateSample instance which contains the current per-second request count and a timestamp indicating the start time of this count (when a second has past, the value is added to the sliding window of values and cleared to begin the next count).