Class ScalingReservoir

java.lang.Object
org.apache.cassandra.metrics.ScalingReservoir
All Implemented Interfaces:
com.codahale.metrics.Reservoir, SnapshottingReservoir

public class ScalingReservoir extends Object implements SnapshottingReservoir
A reservoir that scales the values before updating.
  • Constructor Details

  • Method Details

    • size

      public int size()
      Specified by:
      size in interface com.codahale.metrics.Reservoir
    • update

      public void update(long value)
      Specified by:
      update in interface com.codahale.metrics.Reservoir
    • getSnapshot

      public com.codahale.metrics.Snapshot getSnapshot()
      Specified by:
      getSnapshot in interface com.codahale.metrics.Reservoir
    • getPercentileSnapshot

      public com.codahale.metrics.Snapshot getPercentileSnapshot()
      Specified by:
      getPercentileSnapshot in interface SnapshottingReservoir