Class TomcatMetricsBinder

  • All Implemented Interfaces:
    java.util.EventListener, org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>

    public class TomcatMetricsBinder
    extends java.lang.Object
    implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>
    Binds TomcatMetrics in response to the ApplicationReadyEvent.
    Since:
    1.1.0
    • Constructor Summary

      Constructors 
      Constructor Description
      TomcatMetricsBinder​(io.micrometer.core.instrument.MeterRegistry meterRegistry)  
      TomcatMetricsBinder​(io.micrometer.core.instrument.MeterRegistry meterRegistry, java.lang.Iterable<io.micrometer.core.instrument.Tag> tags)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onApplicationEvent​(org.springframework.boot.context.event.ApplicationReadyEvent event)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TomcatMetricsBinder

        public TomcatMetricsBinder​(io.micrometer.core.instrument.MeterRegistry meterRegistry)
      • TomcatMetricsBinder

        public TomcatMetricsBinder​(io.micrometer.core.instrument.MeterRegistry meterRegistry,
                                   java.lang.Iterable<io.micrometer.core.instrument.Tag> tags)
    • Method Detail

      • onApplicationEvent

        public void onApplicationEvent​(org.springframework.boot.context.event.ApplicationReadyEvent event)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>