public class PollableChannelMetrics extends DirectChannelMetrics
DEFAULT_MOVING_AVERAGE_WINDOW, logger, ONE_MINUTE_SECONDS, ONE_SECOND_SECONDS
Constructor and Description |
---|
PollableChannelMetrics(MessageChannel messageChannel,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
doInvoke(org.aopalliance.intercept.MethodInvocation invocation,
java.lang.String method,
MessageChannel channel) |
int |
getReceiveCount() |
int |
getReceiveErrorCount() |
void |
reset() |
java.lang.String |
toString() |
destroy, getErrorRate, getMaxSendDuration, getMeanErrorRate, getMeanErrorRatio, getMeanSendDuration, getMeanSendRate, getMessageChannel, getMinSendDuration, getName, getSendCount, getSendDuration, getSendErrorCount, getSendRate, getStandardDeviationSendDuration, getTimeSinceLastSend, invoke
public PollableChannelMetrics(MessageChannel messageChannel, java.lang.String name)
protected java.lang.Object doInvoke(org.aopalliance.intercept.MethodInvocation invocation, java.lang.String method, MessageChannel channel) throws java.lang.Throwable
doInvoke
in class DirectChannelMetrics
java.lang.Throwable
@ManagedOperation public void reset()
reset
in interface MessageChannelMetrics
reset
in class DirectChannelMetrics
@ManagedMetric(metricType=COUNTER, displayName="MessageChannel Receive Count") public int getReceiveCount()
@ManagedMetric(metricType=COUNTER, displayName="MessageChannel Receive Error Count") public int getReceiveErrorCount()
public java.lang.String toString()
toString
in class DirectChannelMetrics