类 TomcatMetricsBinder
- java.lang.Object
- org.springframework.boot.actuate.metrics.web.tomcat.TomcatMetricsBinder
- 所有已实现的接口:
EventListener
,org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationStartedEvent>
public class TomcatMetricsBinder extends Object implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationStartedEvent>
BindsTomcatMetrics
in response to theApplicationStartedEvent
.- 从以下版本开始:
- 2.1.0
构造器概要
构造器 构造器 说明 TomcatMetricsBinder(io.micrometer.core.instrument.MeterRegistry meterRegistry)
TomcatMetricsBinder(io.micrometer.core.instrument.MeterRegistry meterRegistry, Iterable<io.micrometer.core.instrument.Tag> tags)
构造器详细资料
TomcatMetricsBinder
public TomcatMetricsBinder(io.micrometer.core.instrument.MeterRegistry meterRegistry)
TomcatMetricsBinder
public TomcatMetricsBinder(io.micrometer.core.instrument.MeterRegistry meterRegistry, Iterable<io.micrometer.core.instrument.Tag> tags)
方法详细资料
onApplicationEvent
public void onApplicationEvent(org.springframework.boot.context.event.ApplicationStartedEvent event)
- 指定者:
onApplicationEvent
在接口中org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationStartedEvent>