public class SimpleMessageSourceMetrics extends Object implements MethodInterceptor, MessageSourceMetrics
Constructor and Description |
---|
SimpleMessageSourceMetrics(MessageSource<?> messageSource) |
Modifier and Type | Method and Description |
---|---|
int |
getMessageCount() |
long |
getMessageCountLong() |
MessageSource<?> |
getMessageSource() |
String |
getName() |
String |
getSource() |
Object |
invoke(MethodInvocation invocation) |
void |
reset() |
void |
setName(String name) |
void |
setSource(String source) |
String |
toString() |
public SimpleMessageSourceMetrics(MessageSource<?> messageSource)
public void setName(String name)
public String getName()
getName
in interface MessageSourceMetrics
public void setSource(String source)
public String getSource()
getSource
in interface MessageSourceMetrics
public MessageSource<?> getMessageSource()
public void reset()
reset
in interface MessageSourceMetrics
public int getMessageCount()
getMessageCount
in interface MessageSourceMetrics
public long getMessageCountLong()
getMessageCountLong
in interface MessageSourceMetrics
public Object invoke(MethodInvocation invocation) throws Throwable
invoke
in interface MethodInterceptor
Throwable