public class SlidingTimeWindowReservoir extends Object
N
seconds (or other time unit).
Adapted from com.codahale.metrics.SlidingTimeWindowReservoir from io.dropwizard.metrics:metrics-core:3.1.2
Constructor and Description |
---|
SlidingTimeWindowReservoir(long window,
TimeUnit windowUnit,
io.micrometer.core.instrument.Clock clock)
Creates a new
SlidingTimeWindowReservoir with the given clock and window of time. |
Modifier and Type | Method and Description |
---|---|
List<Long> |
getMeasurements()
Retrieve the measurements
|
void |
update(long value)
Add new measurement value
|
public SlidingTimeWindowReservoir(long window, TimeUnit windowUnit, io.micrometer.core.instrument.Clock clock)
SlidingTimeWindowReservoir
with the given clock and window of time.window
- the window of timewindowUnit
- the unit of window
clock
- the Clock
to useCopyright © 2010–2024. All rights reserved.