Class TimerImpl
java.lang.Object
io.github.resilience4j.micrometer.internal.TimerImpl
- All Implemented Interfaces:
Timer
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.github.resilience4j.micrometer.Timer
Timer.Context, Timer.EventPublisher -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a Timer context and starts the timer.Returns an EventPublisher can be used to register event consumers.getName()Returns the name of this Timer.getTags()Returns an unmodifiable map with tags assigned to this Timer.Returns the TimerConfig of this Timer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.resilience4j.micrometer.Timer
executeCallable, executeCheckedSupplier, executeCompletionStage, executeRunnable, executeSupplier
-
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
Description copied from interface:TimerReturns the name of this Timer. -
getTimerConfig
Description copied from interface:TimerReturns the TimerConfig of this Timer.- Specified by:
getTimerConfigin interfaceTimer- Returns:
- the TimerConfig of this Timer
-
getTags
Description copied from interface:TimerReturns an unmodifiable map with tags assigned to this Timer. -
createContext
Description copied from interface:TimerCreates a Timer context and starts the timer.- Specified by:
createContextin interfaceTimer- Returns:
- the Timer context
-
getEventPublisher
Description copied from interface:TimerReturns an EventPublisher can be used to register event consumers.- Specified by:
getEventPublisherin interfaceTimer- Returns:
- an EventPublisher
-