Class GaugeSnapshot

    • Field Detail

      • UNAVAILABLE

        public static final GaugeSnapshot UNAVAILABLE
        Constant that corresponds to a snapshot of a counter whose value is unavailable
    • Constructor Detail

      • GaugeSnapshot

        public GaugeSnapshot​(GaugeSupplier supplier)
        Create a snapshot of the given gauge.
        Parameters:
        supplier - the gauge
      • GaugeSnapshot

        public GaugeSnapshot​(StatisticState state,
                             long currentValue,
                             long minAllowedValue,
                             long maxAllowedValue)
        Create a snapshot with the specified values
        Parameters:
        state - the state of the gauge
        currentValue - the current value of the gauge
        minAllowedValue - the minimum allowed value of the gauge
        maxAllowedValue - the maximum allowed value of the gauge