2016-07-08 23 views
0

我在WSO2 Message Broker上用作我的項目中的消息代理系統。爲了獲得隊列瀏覽信息,我生成了AndesAdminServics WSDL的客戶端,我試圖從my api調用AndesAdminServicePortTypeProxy類的012的瀏覽器隊列()方法。產生browseQueue()方法是什麼是AndesAdminServicePortTypeProxy的browseQueue()方法中的nextMessageIdToRead參數

public org.wso2.carbon.andes.admin.internal.xsd.Message[] browseQueue(java.lang.String queueName, java.lang.Long nextMessageIdToRead, java.lang.Integer maxMsgCount) throws java.rmi.RemoteException{ 
    if (andesAdminServicePortType == null) 
     _initAndesAdminServicePortTypeProxy(); 
    return andesAdminServicePortType.browseQueue(queueName, nextMessageIdToRead, maxMsgCount); 
    } 

browseQueue()方法有三個參數 - java.lang.String中QUEUENAME,java.lang.Long中nextMessageIdToRead,java.lang.Integer中maxMsgCount

我明白參數QUEUENAME ,但我沒有得到,參數nextMessageIdToRead和maxMsgCount代表什麼。在browseQueue()方法調用的時候,我應該傳遞什麼作爲參數。

回答

0

您可以參考實際的管理服務代碼。在那裏,它包含更多的信息 https://github.com/wso2/andes/blob/b721d5cccfd9896ec871610b7938ba96785b202c/modules/andes-core/management/common/src/main/java/org/wso2/andes/management/common/mbeans/QueueManagementInformation.java#L162

  1. 名= 「QUEUENAME」,說明= 「隊列的名稱,瀏覽消息」
  2. 名= 「lastMsgId」,說明= 「瀏覽信息這起」
  3. 名=「maxMsgCount」,description =「每個請求的最大消息數」
相關問題