Top Description Fields Constructors Methods
org.eclipse.jetty.util.statistic

public Class RateCounter

extends Object
Class Inheritance
Imports
java.util.concurrent.atomic.AtomicLong, .LongAdder, org.eclipse.jetty.util.NanoTime

Counts the rate that Longs are added to this from the time of creation or the last call to reset().

Field Summary

Modifier and TypeField and Description
private final AtomicLong
private final LongAdder

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
add(long l)

public long
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_nanoTimeback to summary
private final AtomicLong _nanoTime
_totalback to summary
private final LongAdder _total

Constructor Detail

RateCounterback to summary
public RateCounter()

Method Detail

addback to summary
public void add(long l)
getRateback to summary
public long getRate()
resetback to summary
public void reset()