TopicMBean¶
-
public class
TopicMBean
¶ Represents a JMS topic. Holds information about the topic statistics. This information is retrieved using JMX.
Constructors¶
Methods¶
getConsumerCount¶
-
public long
getConsumerCount
()¶ Returns: number of consumers for this topic (most likely MOTECH instances)
getDequeueCount¶
-
public long
getDequeueCount
()¶ Returns: the total number of messages removed from the topic since last restart
getEnqueueCount¶
-
public long
getEnqueueCount
()¶ Returns: the total number of messages sent to the topic since the last restart
getExpiredCount¶
-
public long
getExpiredCount
()¶ Returns: the number of messages that were not delivered because they were expired
setConsumerCount¶
-
public void
setConsumerCount
(long consumerCount)¶ Parameters: - consumerCount – number of consumers for this topic (most likely MOTECH instances)
setDequeueCount¶
-
public void
setDequeueCount
(long dequeueCount)¶ Parameters: - dequeueCount – the total number of messages removed from the topic since last restart