org.springframework.integration.monitor
Class SimpleMessageSourceMetrics
java.lang.Object
org.springframework.integration.monitor.SimpleMessageSourceMetrics
- All Implemented Interfaces:
- org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, MessageSourceMetrics
public class SimpleMessageSourceMetrics
- extends java.lang.Object
- implements org.aopalliance.intercept.MethodInterceptor, MessageSourceMetrics
- Since:
- 2.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SimpleMessageSourceMetrics
public SimpleMessageSourceMetrics(MessageSource<?> messageSource)
setName
public void setName(java.lang.String name)
getName
public java.lang.String getName()
- Specified by:
getName
in interface MessageSourceMetrics
setSource
public void setSource(java.lang.String source)
getSource
public java.lang.String getSource()
- Specified by:
getSource
in interface MessageSourceMetrics
getMessageSource
public MessageSource<?> getMessageSource()
reset
public void reset()
- Specified by:
reset
in interface MessageSourceMetrics
getMessageCount
public int getMessageCount()
- Specified by:
getMessageCount
in interface MessageSourceMetrics
- Returns:
- the number of successful handler calls
invoke
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
throws java.lang.Throwable
- Specified by:
invoke
in interface org.aopalliance.intercept.MethodInterceptor
- Throws:
java.lang.Throwable
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object