【发布时间】:2014-09-26 13:32:05
【问题描述】:
在DEBUG模式下,有一个ActiveMQ日志为
09:44:10,666 [ActiveMQ Task-1] DEBUG org.apache.activemq.broker.region.Queue:1687 - queue.demo toPageIn: 0, Inflight: 0, pagedInMessages.size 3, enqueueCount: 10, dequeueCount: 7
我是否可以在我的 Java 代码中获取相同的数据来获取 enqueueCount 和 dequeueCount?
谢谢。
ps。我已经尝试过 StatisticsPlugin,但我想我不能使用它,因为这个问题 ActiveMQ async statistics receving
中提到了异步模式【问题讨论】: