Class OpentracingContextTimer
- java.lang.Object
-
- nl.talsmasoftware.context.opentracing.OpentracingContextTimer
-
- All Implemented Interfaces:
ContextTimer
public class OpentracingContextTimer extends Object implements ContextTimer
ThisContextTimeruses theOpentracing APIto report the timing statistics of the context switches that occurred.This class does not really support Opentracing as that it uses opentracing to report the timing metrics of this library.
- Author:
- Sjoerd Talsma
-
-
Constructor Summary
Constructors Constructor Description OpentracingContextTimer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidupdate(Class<?> type, String method, long duration, TimeUnit unit)Provides a new update for the context timer.
-
-
-
Method Detail
-
update
public void update(Class<?> type, String method, long duration, TimeUnit unit)
Description copied from interface:ContextTimerProvides a new update for the context timer.- Specified by:
updatein interfaceContextTimer- Parameters:
type- The class being calledmethod- The method being calledduration- The duration of the methodunit- The unit of the duration
-
-