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(java.time.Duration min,
java.time.Duration max)
Sets the threshold for this timer.
|
PercentileTimer.Builder |
withRange(long min,
long max,
java.util.concurrent.TimeUnit unit)
Sets the range for this timer.
|
public PercentileTimer.Builder withRange(java.time.Duration min, java.time.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, java.util.concurrent.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()