Modifier and Type | Method and Description |
---|---|
long[] |
all()
Obtains all metrics.
|
long |
average()
Obtains the average of all time duration.
|
long |
average(int duration,
java.util.concurrent.TimeUnit unit)
Obtains the average of the specified time duration.
|
long[] |
recent(int duration,
java.util.concurrent.TimeUnit unit)
Obtains the most recent metric values of the specified time duration.
|
long average(int duration, java.util.concurrent.TimeUnit unit)
duration
- time durationunit
- time unitlong average()
long[] recent(int duration, java.util.concurrent.TimeUnit unit)
duration
- time durationunit
- time unitlong[] all()