Class TimerImpl.ContextImpl
java.lang.Object
io.github.resilience4j.metrics.internal.TimerImpl.ContextImpl
- All Implemented Interfaces:
Timer.Context
- Enclosing class:
TimerImpl
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) com.codahale.metrics.Timer.Context -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
timerContext
com.codahale.metrics.Timer.Context timerContext
-
-
Constructor Details
-
ContextImpl
private ContextImpl()
-
-
Method Details
-
onError
public void onError()Description copied from interface:Timer.ContextStops the Timer and records a failed call. This method must be invoked when a call failed.- Specified by:
onErrorin interfaceTimer.Context
-
onSuccess
public void onSuccess()Description copied from interface:Timer.ContextStops the Timer and records a successful call.- Specified by:
onSuccessin interfaceTimer.Context
-