Class PropertiesAutoTimer
java.lang.Object
org.springframework.boot.data.autoconfigure.metrics.PropertiesAutoTimer
- All Implemented Interfaces:
AutoTimer
AutoTimer whose behavior is configured by DataMetricsProperties.Repository.Autotime properties.- Since:
- 4.0.0
- Author:
- Andy Wilkinson
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(Timer.Builder builder) Called to apply any auto-timer settings to the givenTimer.Builder.booleanReturn if the auto-timer is enabled and metrics should be recorded.
-
Constructor Details
-
PropertiesAutoTimer
Create a newPropertiesAutoTimerconfigured using the givenproperties.- Parameters:
properties- the properties to configure auto-timing
-
-
Method Details
-
apply
Description copied from interface:AutoTimerCalled to apply any auto-timer settings to the givenTimer.Builder. -
isEnabled
-