|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lens.server.api.metrics.DisabledMethodMetricsContext
public class DisabledMethodMetricsContext
Dummy implementation of MethodMetricsContext. All the methods do nothing. A singleton. Instead of returning null when
return type is MethodMetricsContext, return getInstance()
instead
of null/Optional object.
Nested Class Summary | |
---|---|
static class |
DisabledMethodMetricsContext.InstanceHolder
|
Method Summary | |
---|---|
static DisabledMethodMetricsContext |
getInstance()
|
void |
markError()
Error came. |
void |
markSuccess()
Method succeeded. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DisabledMethodMetricsContext getInstance()
public void markError()
MethodMetricsContext
markError
in interface MethodMetricsContext
public void markSuccess()
MethodMetricsContext
markSuccess
in interface MethodMetricsContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |