TopicMBean

public class TopicMBean

Represents a JMS topic. Holds information about the topic statistics. This information is retrieved using JMX.

Constructors

TopicMBean

public TopicMBean(String destination)
Parameters:
  • destination – the name of the topic

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

getDestination

public String getDestination()
Returns:the name of the topic

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

setDestination

public void setDestination(String destination)
Parameters:
  • destination – the name of the topic

setEnqueueCount

public void setEnqueueCount(long enqueueCount)
Parameters:
  • enqueueCount – the total number of messages sent to the topic since the last restart

setExpiredCount

public void setExpiredCount(long expiredCount)
Parameters:
  • expiredCount – the number of messages that were not delivered because they were expired