Class TimerImpl.ContextImpl

java.lang.Object
io.github.resilience4j.metrics.internal.TimerImpl.ContextImpl
All Implemented Interfaces:
Timer.Context
Enclosing class:
TimerImpl

public final class TimerImpl.ContextImpl extends Object implements Timer.Context
  • 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.Context
      Stops the Timer and records a failed call. This method must be invoked when a call failed.
      Specified by:
      onError in interface Timer.Context
    • onSuccess

      public void onSuccess()
      Description copied from interface: Timer.Context
      Stops the Timer and records a successful call.
      Specified by:
      onSuccess in interface Timer.Context