Class PushMeterRegistry

java.lang.Object
io.micrometer.core.instrument.MeterRegistry
io.micrometer.core.instrument.push.PushMeterRegistry
Direct Known Subclasses:
StepMeterRegistry

public abstract class PushMeterRegistry extends MeterRegistry
  • Constructor Details

  • Method Details

    • publish

      protected abstract void publish()
    • isPublishing

      protected boolean isPublishing()
      Returns if scheduled publishing of metrics is in progress.
      Returns:
      if scheduled publishing of metrics is in progress
      Since:
      1.11.0
    • getLastScheduledPublishStartTime

      protected long getLastScheduledPublishStartTime()
      Returns the time, in milliseconds, when the last scheduled publish was started by publishSafelyOrSkipIfInProgress().
      Since:
      1.11.1
    • start

      @Deprecated public final void start()
      Deprecated.
    • start

      public void start(ThreadFactory threadFactory)
    • stop

      public void stop()
    • close

      public void close()
      Description copied from class: MeterRegistry
      Closes this registry, releasing any resources in the process. Once closed, this registry will no longer accept new meters and any publishing activity will cease.
      Overrides:
      close in class MeterRegistry
    • waitForInProgressScheduledPublish

      protected void waitForInProgressScheduledPublish()
      Wait until scheduled publishing by PushMeterRegistry completes, if in progress.
      Since:
      1.11.6