java.lang.Object
io.github.resilience4j.micrometer.internal.TimerImpl
All Implemented Interfaces:
Timer

public class TimerImpl extends Object implements Timer
  • Constructor Details

    • TimerImpl

      public TimerImpl(@NonNull String name, @Nullable io.micrometer.core.instrument.MeterRegistry registry, @NonNull TimerConfig timerConfig, @NonNull Map<String,String> tags)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Timer
      Returns the name of this Timer.
      Specified by:
      getName in interface Timer
      Returns:
      the name of this Timer
    • getTimerConfig

      public TimerConfig getTimerConfig()
      Description copied from interface: Timer
      Returns the TimerConfig of this Timer.
      Specified by:
      getTimerConfig in interface Timer
      Returns:
      the TimerConfig of this Timer
    • getTags

      public Map<String,String> getTags()
      Description copied from interface: Timer
      Returns an unmodifiable map with tags assigned to this Timer.
      Specified by:
      getTags in interface Timer
      Returns:
      the tags assigned to this Timer in an unmodifiable map
    • createContext

      public Timer.Context createContext()
      Description copied from interface: Timer
      Creates a Timer context and starts the timer.
      Specified by:
      createContext in interface Timer
      Returns:
      the Timer context
    • getEventPublisher

      public Timer.EventPublisher getEventPublisher()
      Description copied from interface: Timer
      Returns an EventPublisher can be used to register event consumers.
      Specified by:
      getEventPublisher in interface Timer
      Returns:
      an EventPublisher