Class ContainerLifecycleMicrometerHolder

java.lang.Object
org.springframework.kafka.support.micrometer.ContainerLifecycleMicrometerHolder

public final class ContainerLifecycleMicrometerHolder extends Object
Micrometer holder for container lifecycle metrics (start/stop counts).
Since:
4.2.0
Author:
Vineeth Yelagandula
  • Constructor Details

    • ContainerLifecycleMicrometerHolder

      public ContainerLifecycleMicrometerHolder(io.micrometer.core.instrument.MeterRegistry registry, String containerName)
      Create an instance with the provided MeterRegistry and container name.
      Parameters:
      registry - the meter registry.
      containerName - the container bean name.
  • Method Details

    • recordStart

      public void recordStart()
      Increment the start counter.
    • recordStop

      public void recordStop()
      Increment the stop counter.