Class StepTimer
java.lang.Object
io.micrometer.core.instrument.AbstractMeter
io.micrometer.core.instrument.AbstractTimer
io.micrometer.core.instrument.step.StepTimer
- All Implemented Interfaces:
HistogramSupport
,Meter
,Timer
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micrometer.core.instrument.Meter
Meter.Builder, Meter.Id, Meter.MeterProvider<T extends Meter>, Meter.Type
Nested classes/interfaces inherited from interface io.micrometer.core.instrument.Timer
Timer.Builder, Timer.ResourceSample, Timer.Sample
-
Field Summary
Fields inherited from class io.micrometer.core.instrument.AbstractTimer
clock, histogram
-
Constructor Summary
ModifierConstructorDescriptionStepTimer
(Meter.Id id, Clock clock, DistributionStatisticConfig distributionStatisticConfig, PauseDetector pauseDetector, TimeUnit baseTimeUnit, long stepDurationMillis, boolean supportsAggregablePercentiles) Create a newStepTimer
.protected
StepTimer
(Meter.Id id, Clock clock, DistributionStatisticConfig distributionStatisticConfig, PauseDetector pauseDetector, TimeUnit baseTimeUnit, long stepDurationMillis, Histogram histogram) Create a newStepTimer
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
long
count()
double
protected void
recordNonNegative
(long amount, TimeUnit unit) double
Methods inherited from class io.micrometer.core.instrument.AbstractTimer
baseTimeUnit, close, defaultHistogram, record, record, record, record, record, record, record, recordCallable, takeSnapshot
Methods inherited from class io.micrometer.core.instrument.AbstractMeter
equals, getId, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micrometer.core.instrument.distribution.HistogramSupport
takeSnapshot
Methods inherited from interface io.micrometer.core.instrument.Timer
histogramCountAtValue, mean, measure, percentile, record, wrap, wrap, wrap
-
Constructor Details
-
StepTimer
public StepTimer(Meter.Id id, Clock clock, DistributionStatisticConfig distributionStatisticConfig, PauseDetector pauseDetector, TimeUnit baseTimeUnit, long stepDurationMillis, boolean supportsAggregablePercentiles) Create a newStepTimer
.- Parameters:
id
- IDclock
- clockdistributionStatisticConfig
- distribution statistic configurationpauseDetector
- pause detectorbaseTimeUnit
- base time unitstepDurationMillis
- step in millisecondssupportsAggregablePercentiles
- whether it supports aggregable percentiles
-
StepTimer
protected StepTimer(Meter.Id id, Clock clock, DistributionStatisticConfig distributionStatisticConfig, PauseDetector pauseDetector, TimeUnit baseTimeUnit, long stepDurationMillis, Histogram histogram) Create a newStepTimer
.- Parameters:
id
- IDclock
- clockdistributionStatisticConfig
- distribution statistic configurationpauseDetector
- pause detectorbaseTimeUnit
- base time unitstepDurationMillis
- step in millisecondshistogram
- histogram- Since:
- 1.11.1
-
-
Method Details
-
recordNonNegative
- Specified by:
recordNonNegative
in classAbstractTimer
-
count
public long count() -
totalTime
-
max
-
_closingRollover
public void _closingRollover()
-