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