Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我向有 2 个活动消费者的主题发布 3 条消息,那么在成功消费所有消息后,出队计数是 3 还是 6?从我的 JConsole 中,我认为是 6(它显示 enQ=3 和 deQ=6),但您能确认一下吗?
是的,你的假设是正确的。但请记住,它可能并不总是一个精确的倍数,如果其中一个消费者断开连接一段时间然后重新连接,则出队计数将不包括该客户端在断开连接时错过的消息。