Interface Metrics

All Known Implementing Classes:
FixedSizeSlidingWindowMetrics, SlidingTimeWindowMetrics

public interface Metrics
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Interface Description
    static class  Metrics.Outcome  
  • Method Summary

    Modifier and Type Method Description
    Snapshot getSnapshot()
    Returns a snapshot.
    Snapshot record​(long duration, java.util.concurrent.TimeUnit durationUnit, Metrics.Outcome outcome)
    Records a call.
  • Method Details

    • record

      Snapshot record​(long duration, java.util.concurrent.TimeUnit durationUnit, Metrics.Outcome outcome)
      Records a call.
      Parameters:
      duration - the duration of the call
      durationUnit - the time unit of the duration
      outcome - the outcome of the call
    • getSnapshot

      Snapshot getSnapshot()
      Returns a snapshot.
      Returns:
      a snapshot