Class RegisteredReader


  • public class RegisteredReader
    extends java.lang.Object
    Represents a MetricReader registered with SdkMeterProvider.

    This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.

    • Field Detail

      • ID_COUNTER

        private static final java.util.concurrent.atomic.AtomicInteger ID_COUNTER
      • id

        private final int id
      • lastCollectEpochNanos

        private volatile long lastCollectEpochNanos
    • Method Detail

      • setLastCollectEpochNanos

        public void setLastCollectEpochNanos​(long epochNanos)
        Set the time the last collection took place for the reader.

        Called by SdkMeterProvider's MetricProducer after collection.

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(@Nullable
                              java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object