Class TimerImpl
java.lang.Object
io.github.resilience4j.metrics.internal.TimerImpl
- All Implemented Interfaces:
Timer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classprivate final classNested classes/interfaces inherited from interface Timer
Timer.Context, Timer.Metrics -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprivate com.codahale.metrics.Counterprivate final com.codahale.metrics.MetricRegistryprivate final TimerImpl.TimerMetricsstatic final Stringprivate com.codahale.metrics.Timerprivate final Stringstatic final Stringprivate com.codahale.metrics.Counter -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Timer
executeCallable, executeCompletionStageSupplier, executeRunnable, executeSupplier
-
Field Details
-
SUCCESSFUL
- See Also:
-
TOTAL
- See Also:
-
FAILED
- See Also:
-
timerName
-
metricRegistry
private final com.codahale.metrics.MetricRegistry metricRegistry -
metrics
-
successfulCallsTimer
private com.codahale.metrics.Timer successfulCallsTimer -
totalCallsCounter
private com.codahale.metrics.Counter totalCallsCounter -
failedCallsCounter
private com.codahale.metrics.Counter failedCallsCounter
-
-
Constructor Details
-
TimerImpl
-
-
Method Details
-
context
Description copied from interface:TimerCreates a Timer context and starts the timer -
getName
-
getMetricRegistry
public com.codahale.metrics.MetricRegistry getMetricRegistry()Description copied from interface:TimerReturns the MetricRegistry of this Timer.- Specified by:
getMetricRegistryin interfaceTimer- Returns:
- the MetricRegistry of this Timer
-
getMetrics
Description copied from interface:TimerReturns the Metrics of this Timer.- Specified by:
getMetricsin interfaceTimer- Returns:
- the Metrics of this Timer
-