Class TimerConfig

java.lang.Object
io.github.resilience4j.micrometer.TimerConfig

public class TimerConfig extends Object
  • Method Details

    • getMetricNames

      public String getMetricNames()
      Returns:
      The metric names
    • getOnFailureTagResolver

      public Function<Throwable,String> getOnFailureTagResolver()
      Returns:
      The function that resolves a tag from the exception thrown from the decorated operation.
    • custom

      public static TimerConfig.Builder custom()
      Returns a builder to create a custom TimerConfig.
      Returns:
      a TimerConfig.Builder
    • from

      public static TimerConfig.Builder from(TimerConfig prototype)
      Returns a builder to create a custom TimerConfig using specified config as prototype
      Parameters:
      prototype - A TimerConfig prototype.
      Returns:
      a TimerConfig.Builder
    • ofDefaults

      public static TimerConfig ofDefaults()
      Creates a default Timer configuration.
      Returns:
      a default Timer configuration.
    • toString

      public String toString()
      Overrides:
      toString in class Object