Interface MetricsCaptor.TimerBuilder
- All Known Implementing Classes:
MicrometerMetricsCaptor.MicroTimerBuilder
- Enclosing interface:
- MetricsCaptor
public static interface MetricsCaptor.TimerBuilder
A builder for a timer.
-
Method Summary
Modifier and Type Method Description TimerFacadebuild()Build the timer.MetricsCaptor.TimerBuilderdescription(java.lang.String desc)Add the description.MetricsCaptor.TimerBuildertag(java.lang.String key, java.lang.String value)Add a tag.
-
Method Details
-
tag
Add a tag.- Parameters:
key- the key.value- the value.- Returns:
- the builder.
-
description
Add the description.- Parameters:
desc- the description.- Returns:
- the builder.
-
build
TimerFacade build()Build the timer.- Returns:
- the timer.
-