QueueMBean¶
-
public class
QueueMBean
¶ Represents a JMS queue. Holds information about the queue statistics. This information is retrieved using JMX.
Constructors¶
Methods¶
getConsumerCount¶
-
public long
getConsumerCount
()¶ Returns: number of consumers for this queue (most likely MOTECH instances)
getDequeueCount¶
-
public long
getDequeueCount
()¶ Returns: the total number of messages removed from the queue (ack’d by consumer) since last restart
getEnqueueCount¶
-
public long
getEnqueueCount
()¶ Returns: the total number of messages sent to the queue since the last restart
getExpiredCount¶
-
public long
getExpiredCount
()¶ Returns: the number of messages that were not delivered because they were expired
getQueueSize¶
-
public long
getQueueSize
()¶ Returns the total number of messages in the queue/store that have not been ack’d by a consumer. This can become confusing at times when compared to the Enqueue Count because the Enqueue Count is a count over a period of time (since the last broker restart) while the Queue Size is not dependent on a period of time but instead on the actual number of messages in the store.
Returns: the total number of messages in the queue/store that have not been ack’d by a consumer, not dependent on a period of time
setConsumerCount¶
-
public void
setConsumerCount
(long consumerCount)¶ Parameters: - consumerCount – number of consumers for this queue (most likely MOTECH instances)
setDequeueCount¶
-
public void
setDequeueCount
(long dequeueCount)¶ Parameters: - dequeueCount – the total number of messages removed from the queue (ack’d by consumer) since last restart
setDestination¶
setEnqueueCount¶
-
public void
setEnqueueCount
(long enqueueCount)¶ Parameters: - enqueueCount – the total number of messages sent to the queue since the last restart
setExpiredCount¶
-
public void
setExpiredCount
(long expiredCount)¶ Parameters: - expiredCount – the number of messages that were not delivered because they were expired
setQueueSize¶
-
public void
setQueueSize
(long queueSize)¶ Sets the total number of messages in the queue/store that have not been ack’d by a consumer. This can become confusing at times when compared to the Enqueue Count because the Enqueue Count is a count over a period of time (since the last broker restart) while the Queue Size is not dependent on a period of time but instead on the actual number of messages in the store.
Parameters: - queueSize – the total number of messages in the queue/store that have not been ack’d by a consumer, not dependent on a period of time