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
ConstructorsModifierConstructorDescriptionprotected
PushMeterRegistry
(PushRegistryConfig config, Clock clock) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes this registry, releasing any resources in the process.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()
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
-
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
-
start(ThreadFactory)
instead.