RE: Questions on queue message counters
Iterating point 1 again,( not sure how this was converted to a Hyperlink)
1. Trying to understand the resetMessageCounter() API. Does this reset all the queue counters to 0? Also, does it set a reset time, which we can leverage further? If yes, which field would signify that?
From: Neha Sareen
Sent: Monday, June 25, 2018 10:38 AM
Subject: Questions on queue message counters
We are working with Apache Artemis 2.4.0 and have some questions related to the queue message counters.
I have been looking at the org.apache.activemq.artemis.api.core.management.QueueControl interface to get info around the queue message counter related APIs.
1. Trying to understand the HYPERLINK "https://urldefense.proofpoint.com/v2/url?u=https-3A__activemq.apache.org_artemis_docs_javadocs_javadoc-2Dlatest_org_apache_activemq_artemis_api_core_management_QueueControl.html-23resetMessageCounter-2D-2D-2522resetMessageCounter-28-29&d=DwIFAg&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=a9YS1Z_IlHjjwrEIkK3pngi5xaGRZ0QdCmbyVuaLSBU&m=gkYvDx8RnaT70E66rKs5Jo0OkjeMVwp9CiHP_MPUCDI&s=9whYnHNIAmfwgvYeuoC9Fl04FVLqiytMuwsvYGS9z1Y&e= API. Does this reset all the queue counters to 0? Also, does it set a reset time, which we can leverage further? If yes, which field would signify that?
2. How can we determine the number of messages added/enqueued to a queue since the last reset time?
3. How do we determine the number of messages consumed/dequeued from a queue since the last reset time?
4. For 2 above, I do see a getMessagesAdded() API which states that this returns the number of messages added to the queue since it was created. If the queue message counters are reset, would this API still return number of messages added since the queue was created or since the last reset?
5. Is there an API to get the high queue depth or the maximum number of messages in a queue since the last reset time?
6. If there are no APIs that answer 2, 3, 4 and 5 above, can we somehow derive or calculate these values from an API that Artemis provides today?
Would appreciate if someone can clarify these.
Oracle Marketing Cloud