org.springframework.integration.monitor
Class QueueChannelMonitor
java.lang.Object
org.springframework.integration.monitor.SimpleMessageChannelMonitor
org.springframework.integration.monitor.PollableChannelMonitor
org.springframework.integration.monitor.QueueChannelMonitor
- All Implemented Interfaces:
- org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, MessageChannelMonitor
public class QueueChannelMonitor
- extends PollableChannelMonitor
- Since:
- 2.0
- Author:
- Dave Syer
Methods inherited from class org.springframework.integration.monitor.SimpleMessageChannelMonitor |
destroy, getErrorRate, getErrorRatio, getMaxSendDuration, getMeanSendDuration, getMinSendDuration, getName, getSendCount, getSendErrorCount, getSendRate, getStandardDeviationSendDuration, getTimeSinceLastSend, invoke |
QueueChannelMonitor
public QueueChannelMonitor(QueueChannel channel,
String name)
- Parameters:
name
-
getQueueSize
@ManagedMetric(metricType=GAUGE,
displayName="QueueChannel Queue Size")
public int getQueueSize()
getRemainingCapacity
@ManagedMetric(metricType=GAUGE,
displayName="QueueChannel Remaining Capacity")
public int getRemainingCapacity()
Copyright © 2010. All Rights Reserved.