Package nl.talsmasoftware.context.timing
Interface ContextTimer
-
- All Known Implementing Classes:
MetricsContextTimer,MicrometerContextTimer,OpentracingContextTimer
public interface ContextTimerMinimal Service Provider Interface for services that wish to get informed of context switching metrics.Currently the following timed operations are updated:
ContextManagers.createContextSnapshotContextSnapshot.reactivateContextManager.initializeNewContext(*)ContextManager.getActiveContext(*)
(*) Timing is updated for each concrete
ContextManagerimplementation class- Author:
- Sjoerd Talsma
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidupdate(Class<?> type, String method, long duration, TimeUnit unit)Provides a new update for the context timer.
-