Interface Metrics
-
- All Known Implementing Classes:
FixedSizeSlidingWindowMetrics,SlidingTimeWindowMetrics
public interface Metrics
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMetrics.Outcome
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SnapshotgetSnapshot()Returns a snapshot.Snapshotrecord(long duration, java.util.concurrent.TimeUnit durationUnit, Metrics.Outcome outcome)Records a call.
-
-
-
Method Detail
-
record
Snapshot record(long duration, java.util.concurrent.TimeUnit durationUnit, Metrics.Outcome outcome)
Records a call.- Parameters:
duration- the duration of the calldurationUnit- the time unit of the durationoutcome- the outcome of the call
-
getSnapshot
Snapshot getSnapshot()
Returns a snapshot.- Returns:
- a snapshot
-
-