@ManagedResource public class SimpleMessageHandlerMetrics extends java.lang.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() |
java.lang.String |
getName() |
java.lang.String |
getSource() |
double |
getStandardDeviationDuration() |
java.lang.Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
void |
reset() |
void |
setName(java.lang.String name) |
void |
setSource(java.lang.String source) |
java.lang.String |
toString() |
public SimpleMessageHandlerMetrics(MessageHandler handler)
public void setName(java.lang.String name)
public java.lang.String getName()
getName
in interface MessageHandlerMetrics
public void setSource(java.lang.String source)
public java.lang.String getSource()
getSource
in interface MessageHandlerMetrics
public MessageHandler getMessageHandler()
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws java.lang.Throwable
invoke
in interface org.aopalliance.intercept.MethodInterceptor
java.lang.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
public java.lang.String toString()
toString
in class java.lang.Object