Package dagger.producers.monitoring
Interface ProductionComponentTimingRecorder
-
public interface ProductionComponentTimingRecorder
A hook for recording timing of the execution of production components. To install aProductionComponentTimingRecorder
, contribute to a set binding ofProductionComponentTimingRecorder.Factory
, and include theTimingMonitorModule
to the component. The factory will be asked to create one timing recorder for the component, and the resulting instance will be used to create individual timing recorders for producers.If any of these methods throw, then the exception will be logged, and the framework will act as though a no-op timing recorder was returned.
- Since:
- 2.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ProductionComponentTimingRecorder.Factory
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProducerTimingRecorder
producerTimingRecorderFor(ProducerToken token)
Returns a timing recorder for an individual producer method.
-
-
-
Method Detail
-
producerTimingRecorderFor
ProducerTimingRecorder producerTimingRecorderFor(ProducerToken token)
Returns a timing recorder for an individual producer method.
-
-