Class ScalingReservoir

  • All Implemented Interfaces:
    com.codahale.metrics.Reservoir, SnapshottingReservoir

    public class ScalingReservoir
    extends java.lang.Object
    implements SnapshottingReservoir
    A reservoir that scales the values before updating.
    • Method Detail

      • 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