public final class BucketConfig
extends java.lang.Object
BucketTimer
.
By default we publish count (number of times the timer was executed), totalTime, and
the counts and times for the following buckets: 0ms, 100ms, 200ms, 500ms,
1000ms 2000ms, 3000ms, 5000msModifier and Type | Class and Description |
---|---|
static class |
BucketConfig.Builder
Helper class for constructing BucketConfigs.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
long[] |
getBuckets()
Get a copy of the array that holds the bucket values.
|
java.util.concurrent.TimeUnit |
getTimeUnit()
Get the TimeUnit of the buckets.
|
java.lang.String |
getTimeUnitAbbreviation()
Returns an abbreviation for the Bucket's TimeUnit.
|
int |
hashCode() |
java.lang.String |
toString() |
public java.util.concurrent.TimeUnit getTimeUnit()
public java.lang.String getTimeUnitAbbreviation()
public long[] getBuckets()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object