public interface Metrics
| Modifier and Type | Interface and Description |
|---|---|
static class |
Metrics.Outcome |
| Modifier and Type | Method and Description |
|---|---|
Snapshot |
getSnapshot()
Returns a snapshot.
|
Snapshot |
record(long duration,
java.util.concurrent.TimeUnit durationUnit,
Metrics.Outcome outcome)
Records a call.
|
Snapshot record(long duration, java.util.concurrent.TimeUnit durationUnit, Metrics.Outcome outcome)
duration - the duration of the calldurationUnit - the time unit of the durationoutcome - the outcome of the callSnapshot getSnapshot()