Class RateStatistic

java.lang.Object
org.eclipse.jetty.util.statistic.RateStatistic

public class RateStatistic extends Object

Statistics on a time sequence rate.

Calculates the rate at which the record() method is called over the configured period, retaining also the total count and maximum rate achieved.

The implementation keeps a Deque of timestamps for all records for the last time period, so this method is not suitable for large rates unless a small time period is used.