@ManagedResource public class SimpleMessageHandlerMetrics extends Object implements org.aopalliance.intercept.MethodInterceptor, MessageHandlerMetrics
Constructor and Description |
---|
SimpleMessageHandlerMetrics(MessageHandler handler) |
Modifier and Type | Method and Description |
---|---|
int |
getActiveCount() |
Statistics |
getDuration() |
int |
getErrorCount() |
int |
getHandleCount() |
double |
getMaxDuration() |
double |
getMeanDuration() |
MessageHandler |
getMessageHandler() |
double |
getMinDuration() |
String |
getName() |
String |
getSource() |
double |
getStandardDeviationDuration() |
Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
void |
reset() |
void |
setName(String name) |
void |
setSource(String source) |
String |
toString() |
public SimpleMessageHandlerMetrics(MessageHandler handler)
public void setName(String name)
public String getName()
getName
in interface MessageHandlerMetrics
public void setSource(String source)
public String getSource()
getSource
in interface MessageHandlerMetrics
public MessageHandler getMessageHandler()
public Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
invoke
in interface org.aopalliance.intercept.MethodInterceptor
Throwable
public void reset()
reset
in interface MessageHandlerMetrics
public int getHandleCount()
getHandleCount
in interface MessageHandlerMetrics
public int getErrorCount()
getErrorCount
in interface MessageHandlerMetrics
public double getMeanDuration()
getMeanDuration
in interface MessageHandlerMetrics
public double getMinDuration()
getMinDuration
in interface MessageHandlerMetrics
public double getMaxDuration()
getMaxDuration
in interface MessageHandlerMetrics
public double getStandardDeviationDuration()
getStandardDeviationDuration
in interface MessageHandlerMetrics
public int getActiveCount()
getActiveCount
in interface MessageHandlerMetrics
public Statistics getDuration()
getDuration
in interface MessageHandlerMetrics