Class PutCounter

    • Field Detail

      • reset

        protected boolean reset
      • reportZero

        protected boolean reportZero
    • Constructor Detail

      • PutCounter

        public PutCounter​(boolean reset,
                          boolean reportZero)
      • PutCounter

        public PutCounter()
    • Method Detail

      • put

        public void put​(long count)
        Description copied from interface: LongCollector
        Place a long value into the collector to be reported. The actual value reported is determined by the collector implementation that is configured for this source.
        Specified by:
        put in interface LongCollector
        Parameters:
        count - Value to be reported.
      • put

        public void put​(Instant time,
                        long value)
        Description copied from interface: LongCollector
        Place a long value and associated timestamp into the collector to be reported. The actual value and time reported is determined by the collector implementation that is configured for this source.
        Specified by:
        put in interface LongCollector
        Parameters:
        time - Suggested timestamp to use when reporting.
        value - Value to be reported.
      • clone

        public Collector clone()
        Description copied from interface: Collector
        The first instance of a collector is unmarshalled from configuration using hocon, all other instances are cloned from that first one so the clone method should pass along any configuration that was set.
        Specified by:
        clone in interface Collector
        Specified by:
        clone in class TimerCollector
        Returns:
        Clone of this collector
      • put

        public void put​(double value)
        Description copied from interface: DoubleCollector
        Place a double value into the collector to be reported. The actual value reported is determined by the collector implementation that is configured for this source.
        Specified by:
        put in interface DoubleCollector
        Parameters:
        value - Value to be reported.
      • put

        public void put​(Instant time,
                        double value)
        Description copied from interface: DoubleCollector
        Place a double value and associated timestamp into the collector to be reported. The actual value and time reported is determined by the collector implementation that is configured for this source.
        Specified by:
        put in interface DoubleCollector
        Parameters:
        time - Suggested timestamp to use when reporting.
        value - Value to be reported.
      • put

        public void put​(Duration duration)
        Description copied from interface: DurationCollector
        Place a Duration value into the collector to be reported. The actual value reported is determined by the collector implementation that is configured for this source.
        Specified by:
        put in interface DurationCollector
        Parameters:
        duration - Value to be reported.
      • put

        public void put​(Instant time,
                        Duration duration)
        Description copied from interface: DurationCollector
        Place a Duration value and associated timestamp into the collector to be reported. The actual value and time reported is determined by the collector implementation that is configured for this source.
        Specified by:
        put in interface DurationCollector
        Parameters:
        time - Suggested timestamp to use when reporting.
        duration - Value to be reported.
      • put

        public void put​(String value)
        Description copied from interface: StringCollector
        Place a String value into the collector to be reported. The actual value reported is determined by the collector implementation that is configured for this source.
        Specified by:
        put in interface StringCollector
        Parameters:
        value - Value to be reported.
      • put

        public void put​(Instant time,
                        String value)
        Description copied from interface: StringCollector
        Place a double value and associated timestamp into the collector to be reported. The actual value and time reported is determined by the collector implementation that is configured for this source.
        Specified by:
        put in interface StringCollector
        Parameters:
        time - Suggested timestamp to use when reporting.
        value - Value to be reported.
      • put

        public void put​(Instant time)
        Description copied from interface: TimeCollector
        Place a double value into the collector to be reported. The actual value reported is determined by the collector implementation that is configured for this source.
        Specified by:
        put in interface TimeCollector
        Parameters:
        time - Value to be reported.
      • put

        public void put​(Instant time,
                        Instant value)
        Description copied from interface: TimeCollector
        Place a double value and associated timestamp into the collector to be reported. The actual value and time reported is determined by the collector implementation that is configured for this source.
        Specified by:
        put in interface TimeCollector
        Parameters:
        time - Suggested timestamp to use when reporting.
        value - Value to be reported.