public static final class PercentileTimer.Builder extends TagsBuilder<PercentileTimer.Builder>
extraTags| Modifier and Type | Method and Description |
|---|---|
PercentileTimer |
build()
Create or get an instance of the percentile timer with the specified settings.
|
PercentileTimer.Builder |
withRange(Duration min,
Duration max)
Sets the threshold for this timer.
|
PercentileTimer.Builder |
withRange(long min,
long max,
TimeUnit unit)
Sets the range for this timer.
|
public PercentileTimer.Builder withRange(Duration min, Duration max)
withRange(long, long, TimeUnit).min - Duration indicating the minimum value for this timer.max - Duration indicating the maximum value for this timer.public PercentileTimer.Builder withRange(long min, long max, TimeUnit unit)
min - Amount indicating the minimum allowed value for this timer.max - Amount indicating the maximum allowed value for this timer.unit - Unit for the specified amount.public PercentileTimer build()