Class PushMeterRegistry
java.lang.Object
io.micrometer.core.instrument.MeterRegistry
io.micrometer.core.instrument.push.PushMeterRegistry
- Direct Known Subclasses:
StepMeterRegistry
-
Nested Class Summary
Nested classes/interfaces inherited from class io.micrometer.core.instrument.MeterRegistry
MeterRegistry.Config, MeterRegistry.More
-
Field Summary
Fields inherited from class io.micrometer.core.instrument.MeterRegistry
clock
-
Constructor Summary
ModifierConstructorDescriptionprotected
PushMeterRegistry
(PushRegistryConfig config, Clock clock) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes this registry, releasing any resources in the process.protected long
Returns the time, in milliseconds, when the last scheduled publish was started bypublishSafelyOrSkipIfInProgress()
.protected boolean
Returns if scheduled publishing of metrics is in progress.protected abstract void
publish()
final void
start()
Deprecated.void
start
(ThreadFactory threadFactory) void
stop()
protected void
Wait until scheduled publishing byPushMeterRegistry
completes, if in progress.Methods inherited from class io.micrometer.core.instrument.MeterRegistry
clear, config, counter, counter, defaultHistogramConfig, find, forEachMeter, gauge, gauge, gauge, gauge, gaugeCollectionSize, gaugeMapSize, get, getBaseTimeUnit, getConventionName, getConventionTags, getMeters, isClosed, meterRegistrationFailed, more, newCounter, newDistributionSummary, newFunctionCounter, newFunctionTimer, newGauge, newLongTaskTimer, newLongTaskTimer, newMeter, newTimeGauge, newTimer, remove, remove, removeByPreFilterId, summary, summary, timer, timer
-
Constructor Details
-
PushMeterRegistry
-
-
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 bypublishSafelyOrSkipIfInProgress()
.- Since:
- 1.11.1
-
start
Deprecated.Usestart(ThreadFactory)
instead. -
start
-
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 classMeterRegistry
-
waitForInProgressScheduledPublish
protected void waitForInProgressScheduledPublish()Wait until scheduled publishing byPushMeterRegistry
completes, if in progress.- Since:
- 1.11.6
-
start(ThreadFactory)
instead.