[英]how to show/measure depth and threshold of a tibco queue/topics in java, spring boot
我想在Java中顯示eit tibco jms隊列深度和閾值。 有誰有示例示例顯示如何顯示隊列深度和閾值。
謝謝。
您必須在構建路徑中包含tibjmsadmin.jar,然后可以執行以下操作:
TibjmsAdmin admin = new TibjmsAdmin(server, user, password);
int numMsgs = admin.getQueues("Q1")[0].getPendingMessageCount();
不知道“閾值”是什么意思,但可以嘗試getMaxMsgs()
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.