Class MicrometerHolder

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

public final class MicrometerHolder extends Object
A wrapper for micrometer timers when available on the class path.
Since:
2.5
Author:
Gary Russell
  • Constructor Details

  • Method Details

    • start

      public Object start()
      Start the timer.
      Returns:
      the sample.
    • success

      public void success(Object sample)
      Record success.
      Parameters:
      sample - the sample.
      See Also:
    • failure

      public void failure(Object sample, String exception)
      Record failure.
      Parameters:
      sample - the sample.
      exception - the exception name.
      See Also:
    • success

      public void success(Object sample, Object record)
      Record success.
      Parameters:
      sample - the sample.
      record - the consumer record.
      See Also:
    • failure

      public void failure(Object sample, String exception, Object record)
      Record failure.
      Parameters:
      sample - the sample.
      exception - the exception name.
      record - the consumer record.
      See Also:
    • destroy

      public void destroy()
      Remove the timers.