|
|
|
@ -55,9 +55,6 @@ public class MetricsManager { |
|
|
|
|
/** |
|
|
|
|
* Creates a {@link Timer} whose name is based on a class name and a |
|
|
|
|
* qualified name. |
|
|
|
|
* @param clazz |
|
|
|
|
* @param name |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
public Timer timer(Class clazz, String name) { |
|
|
|
|
if (metricsActivatedByConfiguration()) { |
|
|
|
@ -70,9 +67,6 @@ public class MetricsManager { |
|
|
|
|
/** |
|
|
|
|
* Creates a {@link Timer} whose name is based on an object's class name and a |
|
|
|
|
* qualified name. |
|
|
|
|
* @param ref |
|
|
|
|
* @param name |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
public Timer timer(Object ref, String name) { |
|
|
|
|
return timer(ref.getClass(),name); |
|
|
|
@ -82,9 +76,6 @@ public class MetricsManager { |
|
|
|
|
* Initiate a {@link TimerBuilder} using a condition. |
|
|
|
|
* If the condition is false, a void {@link Timer} will finally be built thus |
|
|
|
|
* no timer will be registered in the Metrics registry. |
|
|
|
|
* |
|
|
|
|
* @param ifTrue |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
public TimerBuilder condition(boolean ifTrue) { |
|
|
|
|
if (metricsActivatedByConfiguration()) { |
|
|
|
|