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)
    • startMessage

      protected String startMessage()
      Message that will be logged when the registry is started. This can be overridden to customize the message with info specific to the registry implementation that may be helpful in troubleshooting. By default, the registry class name and step interval are included.
      Returns:
      message to log on registry start
      Since:
      1.13.0
    • 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