public class StepTimer extends AbstractTimer
Timer.Builder, Timer.SampleMeter.Id, Meter.Typeclock, histogram| Constructor and Description |
|---|
StepTimer(Meter.Id id,
Clock clock,
DistributionStatisticConfig distributionStatisticConfig,
PauseDetector pauseDetector,
TimeUnit baseTimeUnit)
|
StepTimer(Meter.Id id,
Clock clock,
DistributionStatisticConfig distributionStatisticConfig,
PauseDetector pauseDetector,
TimeUnit baseTimeUnit,
boolean supportsAggregablePercentiles)
|
StepTimer(Meter.Id id,
Clock clock,
DistributionStatisticConfig distributionStatisticConfig,
PauseDetector pauseDetector,
TimeUnit baseTimeUnit,
long stepMillis,
boolean supportsAggregablePercentiles)
Create a new
StepTimer. |
| Modifier and Type | Method and Description |
|---|---|
long |
count() |
double |
max(TimeUnit unit) |
protected void |
recordNonNegative(long amount,
TimeUnit unit) |
double |
totalTime(TimeUnit unit) |
baseTimeUnit, close, equals, hashCode, record, record, record, recordCallable, takeSnapshotgetIdclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilder, builder, histogramCountAtValue, mean, measure, percentile, record, start, start, start, wrap, wrap, wraptakeSnapshot@Deprecated public StepTimer(Meter.Id id, Clock clock, DistributionStatisticConfig distributionStatisticConfig, PauseDetector pauseDetector, TimeUnit baseTimeUnit)
StepTimer(io.micrometer.core.instrument.Meter.Id, Clock, DistributionStatisticConfig, PauseDetector, TimeUnit, long, boolean)StepTimer.id - IDclock - clockdistributionStatisticConfig - distribution statistic configurationpauseDetector - pause detectorbaseTimeUnit - base time unit@Deprecated public StepTimer(Meter.Id id, Clock clock, DistributionStatisticConfig distributionStatisticConfig, PauseDetector pauseDetector, TimeUnit baseTimeUnit, boolean supportsAggregablePercentiles)
StepTimer(io.micrometer.core.instrument.Meter.Id, Clock, DistributionStatisticConfig, PauseDetector, TimeUnit, long, boolean)StepTimer.id - IDclock - clockdistributionStatisticConfig - distribution statistic configurationpauseDetector - pause detectorbaseTimeUnit - base time unitsupportsAggregablePercentiles - whether it supports aggregable percentilespublic StepTimer(Meter.Id id, Clock clock, DistributionStatisticConfig distributionStatisticConfig, PauseDetector pauseDetector, TimeUnit baseTimeUnit, long stepMillis, boolean supportsAggregablePercentiles)
StepTimer.id - IDclock - clockdistributionStatisticConfig - distribution statistic configurationpauseDetector - pause detectorbaseTimeUnit - base time unitstepMillis - step in millisecondssupportsAggregablePercentiles - whether it supports aggregable percentilesprotected void recordNonNegative(long amount,
TimeUnit unit)
recordNonNegative in class AbstractTimerpublic long count()
public double totalTime(TimeUnit unit)
unit - The base unit of time to scale the total to.public double max(TimeUnit unit)
unit - The base unit of time to scale the max to.Copyright © 2020 LeanCloud. All rights reserved.