Interface Metrics

All Known Implementing Classes:
FixedSizeSlidingWindowMetrics, LockFreeFixedSizeSlidingWindowMetrics, LockFreeSlidingTimeWindowMetrics, SlidingTimeWindowMetrics

public interface Metrics
  • Method Details

    • record

      Snapshot record(long duration, 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